MicroPython upon Firmware

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
pepe_cz
Posts: 1
Joined: Sun Mar 30, 2014 5:10 pm

MicroPython upon Firmware

Post by pepe_cz » Sun Mar 30, 2014 5:45 pm

I wonder if there is a possibility to use MicroPython as interpreter running on top of the firmware. Idea behind there is a existing firmware (ARM-Cortex M4) which manage all hardware resources (display, buttons, eeprom, motor inverter, etc...) and make them accessible to MicroPython? Or MicroPython is cosntructed to have direct access to all uC/board resources?

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

Re: MicroPython upon Firmware

Post by pfalcon » Thu Apr 17, 2014 9:35 pm

MicroPython in its core is just compiler and virtual machine, which have almost zero external dependencies. Of course, to be useful, there is need for I/O, but that's handled by "ports". For example, there are ports for bare-metal ARM Cortex-M and POSIX API (requiring quite modest subset of it). Certainly, between these 2 extremes, one can make a port to any RTOS or "firmware".
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/

Post Reply