Rich_Morin
The Raspberry Pi pico seems like a very nifty platform for the sorts of IoT projects I’d like to play with. However, it doesn’t run Linux, so it doesn’t seem like a Nerves port is in the cards.
That said, I wonder if it might be possible to support a lightweight version of Nerves and the Erlang VM on the pico. This might let folks take advantage of the Nerves tool chain and the Actor approach to programming distributed systems. It might even encourage some pico users to look into using Nerves. Comments? (ducks).
-r
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
I’m posting this in response to Jose’s recent tweet (Cr. link) :
People are sleeping on Elixir for a coding harness:
Hot-code swappi...
New
Hello,
I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes.
We’re a small ...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
fhunleth
The Nerves core team is focused on microprocessor-based embedded devices, so supporting a Cortex-M0 device is not something that we’d take on. That’s not to say that what you propose wouldn’t be interesting.
The two routes I know that might support the Pico are:
Sebb
The RPi Pico is based on the RP2040-Microcontroller, which is a Cortex-M0+. While its the biggest M0 I know of (lots of RAM, Flash, MHz) its still a very limited design, most notably: it has no FPU.
The most lightweight option AtomVM offers is a STM32F4 which is a Cortex-M4 with FPU.
https://github.com/bettio/AtomVM/blob/master/README.STM32.Md
Maybe they can go smaller? But M0 - doubtful!? If its possible this would be indeed a great opportunity and I’m sure the AtomVM-team will take it.
see here for a comparison (Table “ARM Cortex-M instruction variations”)
You should have a look at https://www.grisp.org/ if you are interested in BEAM on smaller platforms.
EDIT: Just found this: https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/is-cortex-m4-the-strongest
Rich_Morin
PJUllrich
Hey folks, sorry to resurrect this thread, but it appears that AtomVM now supports the Raspberry Pi Pico: Getting Started Guide — AtomVM 0.7.0-dev+git.f42fb232 documentation
Does this mean that Nerves might support the the Pico as well?
lawik
No, it means you can run Elixir on the Pico via AtomVM. You might be able to pull some Nerves libraries in but if they rely on anything from Linux you are out of luck.
I haven’t looked but I would assume there isn’t a regular network stack in AtomVM.
I think we will explore shipping AtomVM builds to microcontrollers such as the Pi using NervesHub. But I would be very surprised if Nerves gets adapted to the point that it will run on the Pico.
D4no0
If you read what actually AtomVM does:
This implies that a lot of features of the VM we use and love might be not present or work differently, so I can bet that even native functionalities from OTP (like
:tcp) might not work at all.I would go ahead and safely assume that integration with nerves is impossible and it might be subject to undefined behavior as some core things we imply about the VM might not be true anymore.
LostKobrakai
Maybe it should be highlighted that even while we talk about nerves as an elixir project a lot of nerves is wrapping an elixir release in a linux system and making that a shippable unit + elixir libraries to help integrate with that linux OS. Remove the linux part and the question becomes what nerves is supposed to bring to the table in the first place. The atom vm would basically be the counterpart to both the linux os and the beam vm on a nerves system.
This is not to say that nerves as a whole might not hold desireable features like tooling over atom vm, but those things are not stuff that could be simply pulled over.