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


#1

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


#2

I am not sure it is supported though https://github.com/rennis250/Arduino.jl


#3

Sombody are using ATMEGA8 (16…) with Julia ?
Paul

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
#4

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


#5

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


#6

Shure!

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

Paul


#7

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:

https://www.esp32.com/viewtopic.php?t=499


#8

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


#9

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.

#10

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:

http://dylanmckay.io/blog/rust/avr/llvm/2017/02/09/safer-microcontrollers-almost-here.html


#11

Hi
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 !
Paul
W dniu 2017-06-22 o 05:14, Lyndon White pisze:


#12

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

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


#13

Python have http://micropython.org/ and PyBoard https://store.micropython.org/product/PYBv1.1H

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

Some others boards supporting MicroPython


#14

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.