Non-ARM ports?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Non-ARM ports?

Post by bmarkus » Thu Mar 05, 2015 2:14 pm

Are there uPython ports to other architectures, like AVR or MIPS? I mean uC boards, not Unix or so.
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: Non-ARM ports?

Post by blmorris » Thu Mar 05, 2015 4:09 pm

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.

User avatar
dhylands
Posts: 3415
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Non-ARM ports?

Post by dhylands » Thu Mar 05, 2015 5:31 pm

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.

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: Non-ARM ports?

Post by bmarkus » Fri Mar 06, 2015 9:29 am

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.
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

Damien
Site Admin
Posts: 634
Joined: Mon Dec 09, 2013 5:02 pm

Re: Non-ARM ports?

Post by Damien » Tue Mar 10, 2015 11:54 pm

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!

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Non-ARM ports?

Post by pfalcon » Thu Mar 12, 2015 5:11 pm

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).
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Non-ARM ports?

Post by bmarkus » Thu Mar 12, 2015 5:18 pm

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.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Non-ARM ports?

Post by pfalcon » Sun Apr 05, 2015 1:09 pm

PIC24 (16-bit arch) port was added to MicroPython recently.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: Non-ARM ports?

Post by bmarkus » Sun Apr 05, 2015 2:37 pm

Great! Are you planning PIC32 MIPS?
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

scaldara
Posts: 2
Joined: Mon Nov 17, 2014 6:40 pm

Re: Non-ARM ports?

Post by scaldara » Thu Apr 16, 2015 5:35 pm

I would also be interested in a PIC32 port

Post Reply