Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support for NuttX RTOS #13632

Open
Open
@ghost

Description

Hello,

I would like to get micropython supported on the NuttX RTOS. There was an attempt to do that around 2018 but it was badly maintained inside NuttX and was finally removed. I would like to try this again, the proper way.

The issue is that NuttX is a complex RTOS, and in this framework, micropython needs to be compiled as a NuttX application, executable via their nsh shell. We're not in a situation where micropython boots to a REPL, even if that is possible if the NuttX default app is set to mpy instead of the nsh shell.

They have an existing build system, that has lots of requirements, and basically the best way to do this would be to compile as much of micropython as possible into a static lib, built via a recursive make, which is then linked to an app entry point built by the NuttX build system.

At first the plan would be to run a minimal REPL, but then, RTOS features could be integrated as python modules.

NuttX also has support for mbedTLS, and I have no idea how to rely on that library instead of the mbedtls provided by micropython.

In summary, doing this would require some cooperation between the two build systems.

I'm just at the beginning of this investigation. I have developed several products using NuttX and know how it works, but I'm still discovering how micropython ports are built.

I would be grateful for any reaction or idea coming to anyone's mind after this project introduction.

I will be soon attempting "some basic stuff" to see what I can achieve, but I will probably need some inspiration from experts here :)

Thank you for reading!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions