Hi Tomek,

great to see your success on uPython for Nuttx. For your "I will have to see how much work with peripheral drivers will be out there in bare metal MP to NuttX,", I dont think there is much to do with the drivers: Nuttx have already many drivers written in C, and from uPython, you just can open(), read(), write(), close() the character drivers. For example, if you like to read a pressure sensor what is already supported (BMP180 for example, a pressure sensor connected by I2C), all the hardware stuff is done already in C. uPython only needs to open the BMP180, and ready.

This is the big different of (u)Python on Nuttx compared with uPython on bare metal. The uPython on bare metal implementation must implement every hardware/sensor by itself. uPython on Nuttx can reuse all existing sensors, actors, and so on.

Good luck!


Am 2022-06-20 17:18, schrieb Tomek CEDRO:
On Mon, Jun 20, 2022 at 8:51 AM wrote:
(..)
About Python: there was in the past a uPython port for Nuttx, but it
seems to be abandoned in 2016 or so. Is anybody working on a Python or
uPython port to Nuttx?

Hey there Michael :-) I have updated the GitHub status with:

I am finishing some projects based on MicroPython so I got some
experience with it.

I now need something faster for upcoming projects so I will get into
NuttX internals in upcoming months.

The best scenario for me is to have MicroPython for rapid prototyping
and proof-of-concept and then NuttX RTOS as the target efficient
solution.

Having MP on NuttX would allow invisible switch from MP ptototype to
RTOS and this is the goal :-)

No specific date on when it will work, I will have to see how much
work with peripheral drivers will be out there in bare metal MP to
NuttX, but lets assume 2022H2 :-)

Reply via email to