Port micropython to NXP's MCU

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Albort
Posts: 3
Joined: Fri Jul 05, 2019 7:43 am

Port micropython to NXP's MCU

Post by Albort » Fri Jul 19, 2019 1:56 am

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.

Online
User avatar
jimmo
Posts: 427
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: Port micropython to NXP's MCU

Post by jimmo » Sat Jul 20, 2019 1:11 am

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.

Albort
Posts: 3
Joined: Fri Jul 05, 2019 7:43 am

Re: Port micropython to NXP's MCU

Post by Albort » Wed Jul 24, 2019 1:45 am

Thanks for your help, I will try it later.

Post Reply