Porting Mirocpython to Risc V ?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Posts: 31
Joined: Mon Jan 05, 2015 6:48 pm

Porting Mirocpython to Risc V ?

Post by eduardo » Thu Oct 22, 2015 9:42 am

We got a small FPGA reserarch project funded. We consider running Micropython on a Risc V core on an FPGA.

Having micropython as an interpreter would make things easy on the higher levels.

We do our own Lattice based FPGA board with Flash and Memory and interfaces, so we are flexible
on that side.

Is someone here interested in porting micropython to the Risc V architecture?

We even would pay some money.

Description of Risc-V and gnu tools you can find at http://riscv.org/

I hope to hear from you.

The ultimate goal of the funded project is an FPGA based IoT gatway with a lot of very flexible interfaces (mostly PMOD modules) taken care
in the FPGA handling. (think micropython board on interface steroids)


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

Re: Porting Mirocpython to Risc V ?

Post by pfalcon » Thu Oct 22, 2015 11:24 am

Seeing the title, I thought maybe RiscV is available in ASIC silicon already? Well, FPGA sounds good too, as well as IoT related project. I'd be interested!
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/

Posts: 4
Joined: Wed Oct 07, 2015 12:50 am

Re: Porting Mirocpython to Risc V ?

Post by tdabboud » Fri Oct 30, 2015 10:06 pm

This sounds really interesting. I haven't worked with FPGA's in a couple years, but I would be interested in helping out.

Posts: 1
Joined: Mon Nov 21, 2016 1:16 pm

Re: Porting Mirocpython to Risc V ?

Post by ALU » Mon Nov 21, 2016 1:30 pm

hello, i have the same requirement just like you. I am wondering have you already solve this problem? if so, can I have your result? I am trying to find the way but i can't.

Posts: 3
Joined: Mon Apr 11, 2016 3:44 pm

Re: Porting Mirocpython to Risc V ?

Post by slush » Wed Apr 26, 2017 10:08 am

FYI, there's first RISC-V ASIC on market: https://www.sifive.com/products/freedom-e310/

Posts: 22
Joined: Fri Oct 05, 2018 11:35 am

Re: Porting Mirocpython to Risc V ?

Post by kak » Tue Oct 30, 2018 10:22 am

You may have seen this: https://hackaday.com/2018/10/08/new-par ... -networks/


Now, with cheap Risc-V boards at the gates (https://item.taobao.com/item.htm?id=578484113485), it would be a shame if we couldn't get Micropython for them.

There's FreeRTOS already available for the K210 chips, so this might be the best way to go.

Posts: 5
Joined: Sat Jul 13, 2019 5:58 am

Re: Porting Mirocpython to Risc V ?

Post by talosthoren » Tue Nov 26, 2019 6:50 pm

I'm also trying to figure out how to get started on this for the FE310-G002 on the hifive1-revb board. Learning how to use their metal libraries now, but having some difficulty understanding how to integrate micropython with their build tools in order to get the minimal port running.

I would love to see the example posted on github for lofive, but it seems to 404 for some time now. Anyone have any experience porting micropython to completely new MCU's have any insight they can share?

[Edit]: I've since discovered that the broken link I've been following still belongs to a reachable repository: https://github.com/mmicko/micropython

Thanks to the author for getting this far! The experimental branch actually has code that supports the entire freedom-e-sdk. This is a solid start, for my purposes.

User avatar
Posts: 1681
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: Porting Mirocpython to Risc V ?

Post by jimmo » Wed Nov 27, 2019 12:25 am

Not sure if useful but I know the FuPy team have been working a lot on riscv support for MicroPython -- https://fupy.github.io/

Post Reply