-
Notifications
You must be signed in to change notification settings - Fork 13
Igniter installer #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e7ce6e4 to
76dce71
Compare
d62fa80 to
8968945
Compare
|
I gave this a test for stm32, and it is a bit confusing because when I selected stm32 I was asked about the port… which is currently not used by the stm32 flash task. At the moment we only support using one stlink device at a time. |
absolutely, that one is a compromise, it does say it's configuring project for all/any devices - imho the port should default "auto" for esp32, and that is the underlying issue.. but hope it worked nicely otherwise! |
|
It is interesting for sure, and I could see this being a big improvement for complex applications. For a lot of situations it seems a bit heavy, and I would rather have a simple template project with a default configuration... like what we get with the atomvm_rebar3_plugin atomvm_app template. There are a lot of dependencies to get and compile, and then configure to get to blinky. That might be something we could do separately, I just don't understand the inner workings of mix well enough yet to figure out how to add a template project. I think this is absolutely worth supporting, even though it's early days for igniter it already seems to be getting quite popular. It might be less confusing to leave out the device menu, since in the end it does the configuration for |
cfffe7c to
a092230
Compare
0f32967 to
1df0ca8
Compare
(install igniter: mix archive.install hex igniter_new) you can try mix igniter.new my_project --install exatomvm@github:petermm/exatomvm && cd my_project adds dependency and atomvm project config and the start function. early days in igniter world, but should be good to go. Signed-off-by: Peter M <[email protected]>
|
Hello, i am beginner and i think this would be super interesting to have, also i consider that it would really interesting if this Igniter installer includes the packbeam tool, currently the packbeam tool is intended to be installed system wide, but it would be nice if you can just install it, as a dep of this project like this. I managed to make it work if you this kind of stuff. Add the packbeam tool in the {:atomvm_packbeam, "~> 0.7.5", runtime: false}Add some sort of a Mix task which does this. mix deps.compile
cd _build/dev/lib/atomvm_packbeam/ebin
escript packbeam.beam list ../../../../../my_awesome_app.avmThe reason for executing the packbeam from that folder is because, packbeam CLI expects to have its app in the same folder. thank you for your time. |
Maybe you, might want to use a custom Mix Task which takes EEx template. |
Igniter is gaining traction due to the DX, and maintainability benefits..
(install igniter:
mix archive.install hex igniter_new)you can try

mix igniter.new my_project --install exatomvm@github:petermm/exatomvm && cd my_projectwhen exatomvm is released to hex it will be
mix igniter.new my_project --install exatomvm && cd my_projectadds dependency and atomvm project config and the start function.
early days in igniter world, but should be good to go.
So future DX is:
1. install esptool.2. Install/Flash AtomVM to esp32 in chrome (eg https://petermm.github.io/atomvm_flasher/)mix igniter.new my_project --install exatomvm && cd my_projectmix atomvm.esp32.installfor latest releasemix atomvm.esp32.flashno complex command line flashing of images, or figuring out what usb ports are called on what side of your computer, adding boilerplate etc.