Rich_Morin

Rich_Morin

Using a RasPi pico with Nerves

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

Most Liked

fhunleth

fhunleth

Co-author of Nerves

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:

  1. Porting AtomVM which is a small BEAM bytecode interpreter
  2. Using Lumen to compile Elixir to machine code.
Sebb

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

Rich_Morin

Where Next?

Popular in Discussions Top

Jayshua
I recently came across the javascript library htmx. It reminded me a lot of liveview so I thought the community here might be interested....
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
mbenatti
Following https://github.com/tbrand/which_is_the_fastest |> https://raw.githubusercontent.com/tbrand/which_is_the_fastest/master/imgs...
New
CharlesO
Erlang :list.nth simple, but 1 - based nth(1, [H|_]) -> H; nth(N, [_|T]) when N > 1 -> nth(N - 1, T). Elixir Enum.at … coo...
New
marciol
Please, let me know if this kind of discussion already took place in another topic . Hi all, how do you consider if is better to build ...
New
PragTob
Hey everyone, this has been on my mind for some time and I’d love your input on it! TLDR: I feel like maps are superioer for storing and...
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
RudManusachi
What configs will make sense to put to runtime.exs? – A bit of how I configure apps: I have generic configs in config/config.exs, dev...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
griffinbyatt
Sobelow Sobelow is a security-focused static analysis tool for the Phoenix framework. For security researchers, it is a useful tool for g...
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 127089 1222
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement