Page 1 of 1

Port micropython to NXP's MCU

Posted: Fri Jul 19, 2019 1:56 am
by Albort
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

Posted: Sat Jul 20, 2019 1:11 am
by jimmo
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.

Re: Port micropython to NXP's MCU

Posted: Wed Jul 24, 2019 1:45 am
by Albort
Thanks for your help, I will try it later.