Porting to NUCLEO-L432KC

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
anchung.chen
Posts: 1
Joined: Sat Feb 25, 2017 10:06 am

Porting to NUCLEO-L432KC

Postby anchung.chen » Sat Feb 25, 2017 3:18 pm

I like the small size of the NUCLEO-L432KC which has 256KB Flash and 64KB SRAM. So I try to port micropython for this small dev-board.

Try to use the already supported NUCLEO_L476RG board as the reference for porting. But my biggest problem is how to reduce the firmware size, the current NUCLEO_L476RG takes about 300KB. I like to remove some features and reduce the size to 200KB and leave 50KB for frozen python code.

Using the build of NUCLEO_L476RG for practice, My first step is trying to remove file-system and USB support by modify mpconfigport.h and others files, but without success.

Does anyone have suggestion on how to port micropython to NUCLEO-L432KC ? Thanks for all the reply.

User avatar
dhylands
Posts: 2264
Joined: Mon Jan 06, 2014 6:08 pm
Location: Shuswap, BC, Canada
Contact:

Re: Porting to NUCLEO-L432KC

Postby dhylands » Sat Feb 25, 2017 6:10 pm

It's probably possible (I have micropython running on the teensy 3.1 which is also 256K).

You'll need to remove the internal filesystem. stmhal isn't currently setup to do that, so that will require some work.

And you'll need to turn off some features. The current stmhal firmware is about 313K.


Return to “Other Boards”

Who is online

Users browsing this forum: No registered users and 1 guest