Port micropython to NXP's MCU
Port micropython to NXP's MCU
Hi, I want to port micropython to NXP's MCU(such as MIMXRT1064). What should I do? What's more, I wonder whether micropython provides the feature to debug python code.
Re: Port micropython to NXP's MCU
It's an M7, so at least toolchain-wise it's similar to STM32.
Probably start with the minimal port (micropython/ports/minimal). You'll have to change the STM32 specific stuff but it's written so as to avoid any dependencies. You can use whatever HAL is provided by NXP to implement the required board init and uart etc, the same as if you were writing firmware for this board from scratch in C.
Something that might be worth checking out is that this board is supported by Zephyr, and MicroPython has a Zephyr port.
There is currently no Python-level debugger for MicroPython. Nor am I aware of any equivalent of the gdb scripts for CPython that give you a nice way to inspect the state of the VM.
Probably start with the minimal port (micropython/ports/minimal). You'll have to change the STM32 specific stuff but it's written so as to avoid any dependencies. You can use whatever HAL is provided by NXP to implement the required board init and uart etc, the same as if you were writing firmware for this board from scratch in C.
Something that might be worth checking out is that this board is supported by Zephyr, and MicroPython has a Zephyr port.
There is currently no Python-level debugger for MicroPython. Nor am I aware of any equivalent of the gdb scripts for CPython that give you a nice way to inspect the state of the VM.
Re: Port micropython to NXP's MCU
Thanks for your help, I will try it later.