How to start programing microcontroller in Julia ? is any package?


How to start programing microcontroller in Julia ? is any package ?


I am not sure it is supported though


Sombody are using ATMEGA8 (16…) with Julia ?

W dniu 2017-05-14 o 20:58, Michele Zaffalon pisze:

Running console Julia app with small hardware and small Linux OS but with fast boot

THX , but I am using microcontroller ATMEGA8 , Arduino is other chip. Question stil actual.


You can’t run julia on a ATMEGA8.
Julia can only be run on a computer with a (supported) operating system.



I am lookong for some suport to programing ATMEGA8, analogical like
Arduino.jl …



I was looking into this a while back and I believe one would need the chip to at least support llvm. I had heard espressif was working on this for the xtensa based esp32 with an eye to supporting the rust language, but according to this post, that is behind:


Paul, Julia does run on the Raspberry Pi. OK, that’s not a microcontroller but you should be able to hook at Atmega8 up to the Pi


I’m still unclear if you want to:

  • run julia on the ATMEGA8 – impossible (without some serious work on changing the language itself)
  • communicate with a program on ATMEGA – which is what Arduino.jl lets you do, but you could do directly with SerialPorts.jl
  • Use julia to automate the transferring of compiled programs (eg written in C), to the ATMEGA, eg via JTAG – in which case you probably are best off using julia’s great power for calling external programs, to run the commandline tools that Atmel provides.


No one has done it that I’m aware of, but with some work, one could probably cross-compile Julia code (static) with LLVM’s atmel backend. A similar approach is being worked on for Rust:


Typical way to prgraming microcontrolers ATMEGA is preparing program in
lenguage C. But I i am using Julia (Not C) and Ia mlooking for simply
way to programing mikrokontolers in Julia !
W dniu 2017-06-22 o 05:14, Lyndon White pisze:


BIg Thx, idea nice but for me very hard… i will try :slight_smile:

W dniu 2017-06-21 o 16:58, John Hearns pisze:


Python have and PyBoard

Having a MicroJulia and a JuliaBoard with a ARM MCU (such as STM32) or ESP32 will be great!

Some others boards supporting MicroPython


I don’t expect that Julia would ever run directly on an MCU that small, because Julia (well, really its dependencies) is big. LLVM alone takes up a huge amount of space (not to mention computational time during compilation), and is not currently suitable to be run on an MCU. The only reason Python gets by here, is that at its core, it’s just a simple (slow) interpreter, which is easy enough to implement on an MCU, given the RAM, Flash, and CPU budget you have available. I’m of course glossing over certain important details, but suffice to say that Python and Julia are two very different beasts.