Build Elixir projects for your microcontroller
Repo atomvm/exatomvm, read from GitHub 3 h ago. atomvm has not joined Take My Repo.
atomvm/exatomvm is a public repo on GitHub by atomvm. Build Elixir projects for your microcontroller. It declares the Apache-2.0 license on GitHub. It is written mainly in Elixir, has 77 stars and last changed on 2026-10-22. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
ExAtomVM provide a collection of Mix tasks that greatly simplify development and deployment of Elixir applications targeted for the AtomVM platform.
The following operations are supported:
Note. For information about how to use Mix plugins, see the Mix documentation.
To use this plugin to build packbeam files, you will need
To flash an ExAtomVM project to an ESP32, you will need:
minicom, or the pythonx dependency for mix atomvm.esp32.monitorConsult your local package manager for installation of these tools.
Start by creating a Mix project
shell$ mix new my_project --module MyProject
* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/my_project.ex
* creating test
* creating test/test_helper.exs
* creating test/my_project_test.exs
Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:
cd my_project
mix test
Run "mix help" for more commands.
Edit the generated mix.exs to include the ExAtomVM dependency and the atomvm package of the AtomVM release the project targets, and add a properties list using the atomvm key containing a start entry (the flash tasks document their optional entries below):
## elixir
defmodule MyProject.MixProject do
use Mix.Project
def project do
[
app: :my_project,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
atomvm: [
start: MyProject
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:exatomvm, git: "https://github.com/atomvm/exatomvm/", runtime: false},
{:atomvm, "~> 0.7.0-beta.0", runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end
Note. By convention, Mix dependencies are encapsulated in the private
depsfunction in the project module (mix.exs).
The atomvm package names the AtomVM release the project targets, its version
being the AtomVM version. mix atomvm.check, which mix atomvm.packbeam and
the flash tasks run first, compares the application with the functions and the
BEAM instructions of that release, and warns when the package is missing.
Edit the my_project.ex file so that it contains a start function:
## elixir
defmodule MyProject do
def start do
:ok
end
end
Run mix deps.get to download ExAtomVM into your deps directory:
shell$ mix deps.get
* Getting exatomvm (https://github.com/atomvm/ExAtomVM/)
remote: Enumerating objects: 150, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 150 (delta 14), reused 19 (delta 10), pack-reused 121
origin/HEAD set to master
From now on mix atomvm shows the steps of a project and the tasks of each
board, and mix atomvm.esp32, mix atomvm.stm32 and mix atomvm.pico the
steps of one board.
Create a directory called avm_deps in the top level of your project directory:
shell$ mkdir avm_deps
Download a copy of the AtomVM-libs from the AtomVM Gitbub release repository. Extract the contents of this archive and copy the enclosed AVM files into your avm_deps directory.
Afterwards, you should see something like:
shell$ ls -l avm_deps
total 264
-rw-rw-r-- 1 frege wheel 11380 May 8 16:32 alisp.avm
-rw-rw-r-- 1 frege wheel 48956 May 8 16:32 atomvmlib.avm
-rw-rw-r-- 1 frege wheel 23540 May 8 16:32 eavmlib.avm
-rw-rw-r-- 1 frege wheel 25456 May 8 16:32 estdlib.avm
-rw-rw-r-- 1 frege wheel 1052 May 8 16:32 etest.avm
-rw-rw-r-- 1 frege wheel 16356 May 8 16:32 exavmlib.avm
Run the atomvm.packbeam Mix task to create a packbeam file:
shell$ mix atomvm.packbeam
==> exatomvm
Compiling 5 files (.ex)
Generated exatomvm app
==> my_project
Compiling 1 file (.ex)
Generated my_project app
The my_project.avm file should be created in the top level directory of your project:
shell$ ls -l my_project.avm
-rw-rw-r-- 1 frege wheel 144148 May 8 16:34 my_project.avm
You can optionally use the AtomVM Packbeam tool to view the contents of this AVM file.
shell$ packbeam list my_project.avm
Elixir.MyProject.beam * [500]
Elixir.Mix.Tasks.Atomvm.Check.beam [5684]
Elixir.Mix.Tasks.Atomvm.Packbeam.beam [5188]
Elixir.ExAtomVM.PackBEAM.beam [3412]
Elixir.ExAtomVM.beam [504]
Elixir.Mix.Tasks.Atomvm.Esp32.Flash.beam [2048]
atomvm.beam [412]
console.beam [840]
esp.beam [912]
gpio.beam [1216]
...
To flash your project to an ESP32 device, use the atomvm.esp32.flash mix task. You can optionally specify the USB device using the --port option:`
shell% mix atomvm.esp32.flash --port /dev/tty.usbserial
Generated my_project app
esptool.py v3.2-dev
Serial port /dev/tty.usbserial
Connecting.........
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:c6:f7:2a:54:7c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00210000 to 0x00233fff...
Writing at 0x00210000... (11 %)
Writing at 0x00214000... (22 %)
Writing at 0x00218000... (33 %)
Writing at 0x0021c000... (44 %)
Writing at 0x00220000... (55 %)
Writing at 0x00224000... (66 %)
Writing at 0x00228000... (77 %)
Writing at 0x0022c000... (88 %)
Writing at 0x00230000... (100 %)
Wrote 147456 bytes at 0x00210000 in 13.0 seconds (91.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
(Optional) To view the console output of your application, use the atomvm.esp32.monitor task, which resets the board and shows its output from the boot messages on, or a serial console program, such as minicom:
shell$ mix atomvm.esp32.monitor
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6816
ho 0 tail 12 room 4
load:0x40078000,len:12108
load:0x40080400,len:6664
entry 0x40080774
I (76) boot: Chip Revision: 3
I (77) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (42) boot: ESP-IDF v3.3.4-dirty 2nd stage bootloader
I (42) boot: compile time 14:28:14
I (42) boot: Enabling RNG early entropy source...
I (47) boot: SPI Speed : 40MHz
I (51) boot: SPI Mode : DIO
I (55) boot: SPI Flash Size : 4MB
I (59) boot: Partition Table:
I (63) boot: ## Label Usage Type ST Offset Length
I (70) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (77) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (85) boot: 2 factory factory app 00 00 00010000 001c0000
I (92) boot: 3 lib.avm RF data 01 01 001d0000 00040000
I (100) boot: 4 main.avm RF data 01 01 00210000 00100000
I (107) boot: End of partition table
I (112) boot_comm: chip revision: 3, min. application chip revision: 0
I (119) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2cb14 (183060) map
I (194) esp_image: segment 1: paddr=0x0003cb3c vaddr=0x3ffb0000 size=0x034d4 ( 13524) load
I (200) esp_image: segment 2: paddr=0x00040018 vaddr=0x400d0018 size=0xd38d8 (866520) map
I (516) esp_image: segment 3: paddr=0x001138f8 vaddr=0x3ffb34d4 size=0x01524 ( 5412) load
I (518) esp_image: segment 4: paddr=0x00114e24 vaddr=0x40080000 size=0x00400 ( 1024) load
I (523) esp_image: segment 5: paddr=0x0011522c vaddr=0x40080400 size=0x17848 ( 96328) load
I (573) esp_image: segment 6: paddr=0x0012ca7c vaddr=0x400c0000 size=0x00064 ( 100) load
I (573) esp_image: segment 7: paddr=0x0012cae8 vaddr=0x50000000 size=0x00804 ( 2052) load
I (595) boot: Loaded app from partition at offset 0x10000
I (595) boot: Disabling RNG early entropy source...
I (596) cpu_start: Pro cpu up.
I (599) cpu_start: Application information:
I (604) cpu_start: Project name: atomvvm-esp32
I (610) cpu_start: App version: e34e0ed-dirty
I (615) cpu_start: Compile time: Apr 3 2022 14:28:20
I (621) cpu_start: ELF file SHA256: 30205fd9063bc42e...
I (627) cpu_start: ESP-IDF: v3.3.4-dirty
I (633) cpu_start: Starting app cpu, entry point is 0x40081410
I (0) cpu_start: App cpu up.
I (643) heap_init: Initializing. RAM available for dynamic allocation:
I (650) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (656) heap_init: At 3FFBAC98 len 00025368 (148 KiB): DRAM
I (662) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (669) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (675) heap_init: At 40097C48 len 000083B8 (32 KiB): IRAM
I (681) cpu_start: Pro cpu start user code
I (28) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
###########################################################
### ######## ####### ## ## ## ## ## ##
## ## ## ## ## ### ### ## ## ### ###
## ## ## ## ## #### #### ## ## #### ####
## ## ## ## ## ## ### ## ## ## ## ### ##
######### ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ##
## ## ## ####### ## ## ### ## ##
###########################################################
I (130) AtomVM: Starting AtomVM revision 0.5.0
I (130) AtomVM: Loaded BEAM partition main.avm at address 0x250000 (size=1048576 bytes)
I (160) atomvm_adc: eFuse Two Point: NOT supported
I (160) atomvm_adc: eFuse Vref: Supported
I (160) AtomVM: Found startup beam Elixir.MyProject.beam
I (160) AtomVM: Loaded BEAM partition lib.avm at address 0x1d0000 (size=262144 bytes)
I (170) AtomVM: Starting Elixir.MyProject.beam...
---
AtomVM finished with return value: ok
I (180) AtomVM: AtomVM application terminated. Going to sleep forever ...
mix.exs ConfigurationTo use this Mix plugin, add ExAtomVM and the atomvm package of the AtomVM release you target to the dependencies list in your mix.exs project file.
def project do [
...
deps: [
...
{:exatomvm, git: "https://github.com/atomvm/exatomvm/", runtime: false},
{:atomvm, "~> 0.7.0-beta.0", runtime: false},
...
],
...
atomvm: [
start: HelloWorld
]
]
end
In addition, you may specify AtomVM-specific configuration using the atomvm tag. The fields in this properties list are described in more detail below.
atomvm taskmix atomvm shows how an application reaches a board, and lists the tasks
grouped by board:
shell$ mix atomvm
An application reaches a board in three steps.
1. Name the module AtomVM starts in the atomvm section of mix.exs.
atomvm: [start: MyProject]
That module must define start/0, which AtomVM calls when the board
boots.
2. Install AtomVM on the board. This is done once.
3. Flash the application, then watch its console.
Steps 2 and 3 differ from board to board:
mix atomvm.esp32
mix atomvm.stm32
mix atomvm.pico
Each task documents its own options:
mix help TASK
ESP32:
mix atomvm.esp32.build # Build AtomVM for ESP32 from source
mix atomvm.esp32.erase_flash # Erase flash of ESP32
mix atomvm.esp32.expand # Expand the ESP32 main.avm partition to fill flash
mix atomvm.esp32.flash # Flash the application to an ESP32 micro-controller
mix atomvm.esp32.info # Get information about connected ESP32 devices
mix atomvm.esp32.install # Install AtomVM to ESP32 device
mix atomvm.esp32.monitor # Show the console output of an ESP32 board
STM32:
mix atomvm.stm32.flash # Flash the application to a stm32 micro-controller
Raspberry Pi Pico:
mix atomvm.pico.flash # Flash the application to a pico micro-controller
Any board:
mix atomvm.check # Check application code for use of unsupported instructions
mix atomvm.packbeam # Bundle the application into an AVM file
mix atomvm.uf2create # Create uf2 files appropriate for pico devices from a packed .avm application file
mix atomvm.esp32, mix atomvm.stm32 and mix atomvm.pico show the steps of
one board, its tasks and the dependencies they need.
A task that needs the atomvm section of mix.exs and does not find it prints
what to add to it.
atomvm.check taskThe atomvm.check task compares the application with the AtomVM release of
the atomvm dependency: it lists the functions that release does not provide
and the BEAM instructions it does not implement. mix atomvm.packbeam and the
flash tasks run it before packing. Without the dependency the check is skipped
and a warning says what to add to mix.exs.
A build of AtomVM from source is checked against instead by naming the
directory its supported_api target writes:
shell$ ATOMVM_SUPPORTED_API=../AtomVM/build/supported_api mix atomvm.check
atomvm.packbeam taskThe atomvm.packbeam task is used to bundle your application into an AVM file that can be flashed to a micro-controller and executed by the AtomVM virtual machine.
AVM files built by earlier ExAtomVM releases that contain priv files are rejected when the application is packed, and the task fails with a not_a_beam_file
atomvm/exatomvm is a public repo on GitHub by atomvm. Build Elixir projects for your microcontroller.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-10-22. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run exatomvm. What is known comes from GitHub. It declares the Apache-2.0 license on GitHub. Its last change was on 2026-10-22. It has 77 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.