Page 1 of 2

Non-ARM ports?

Posted: Thu Mar 05, 2015 2:14 pm
by bmarkus
Are there uPython ports to other architectures, like AVR or MIPS? I mean uC boards, not Unix or so.

Re: Non-ARM ports?

Posted: Thu Mar 05, 2015 4:09 pm
by blmorris
The two non-ARM uC ports that I am aware of are the esp8266 port, based on the Tensilica Xtensa architecture, and the not yet released dsPIC port - this was one of the upper-tier Kickstarter rewards, Damien mentioned elsewhere that it is still in progress.

Re: Non-ARM ports?

Posted: Thu Mar 05, 2015 5:31 pm
by dhylands
I would image that MicroPython could comfortably run on some of the chipKIT parts (MIPS based). You might be able to get it to run on an ATMega2560, but there isn't very much RAM in that, and personally I don't think its worth the effort.

I'd much rather use NetDuino Plus 2 board which has an STM32F405 microprocessor with an Arduino form factor.

Re: Non-ARM ports?

Posted: Fri Mar 06, 2015 9:29 am
by bmarkus
Thanks for answers. dsPIC sounds interesting. Any more info available somewhere on this?

PIC32 MIPS is an exciting target. These chips can offer resources required for microPython. It would be great to have it on chipKIT boards, I have them.

Re: Non-ARM ports?

Posted: Tue Mar 10, 2015 11:54 pm
by Damien
bmarkus wrote:Thanks for answers. dsPIC sounds interesting. Any more info available somewhere on this?
I have working code but it's not public yet. The problem is that it needs the proprietary dsPIC IDE with compiler and debugger to be compiled and downloaded to the board. If anyone knows of an open source solution (ie compiler, linker, assembler, downloader) please let me know!

Re: Non-ARM ports?

Posted: Thu Mar 12, 2015 5:11 pm
by pfalcon
PIC16 used to be supported by LLVM: http://llvm.org/releases/2.4/docs/ReleaseNotes.html , but that got dropped just as any other interesting backend ever added to LLVM.

PIC18 has hard-to-google open-source compiler, CPIK: http://pikdev.free.fr/ .

The above is mostly for completeness (I did research for Peripheral Template Library), as those archs are not suitable for uPy.

Vendor PIC24 compiler is known to be based on GCC, so there got to be sources somewhere, and indeed, people did integration work for them, but dropped that few years ago: https://code.google.com/p/pic30/ , https://github.com/makes/c30-linux .

PIC32 is MIPS, so can use normal GCC (but of course needs startup and hardware headers).

Non-ARM ports?

Posted: Thu Mar 12, 2015 5:18 pm
by bmarkus
Microchip's MPIDE and compilers are free, the only issue is the optimization levels, -O2 is available only in the commercial PRO version while free you get only -O1 . Except the 60 days trial period.

Re: Non-ARM ports?

Posted: Sun Apr 05, 2015 1:09 pm
by pfalcon
PIC24 (16-bit arch) port was added to MicroPython recently.

Re: Non-ARM ports?

Posted: Sun Apr 05, 2015 2:37 pm
by bmarkus
Great! Are you planning PIC32 MIPS?

Re: Non-ARM ports?

Posted: Thu Apr 16, 2015 5:35 pm
by scaldara
I would also be interested in a PIC32 port