Flash MicroPython on STM32F411CCU6 ?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
valko94
Posts: 2
Joined: Thu Nov 19, 2020 9:42 pm
Location: Veliko Turnovo, Bulgaria
Contact:

Flash MicroPython on STM32F411CCU6 ?

Post by valko94 » Thu Nov 19, 2020 9:57 pm

Hi everyone :) I found about MicroPython recently and I am hooked about it. I managed to flash my STM32F411CEU6 and started to experiment with it. But my question is if anyone managed to flash MicroPython to STM32F411CCU6 ? I have one board with additional Flash installed and I am wondering how to hook it up too. Searched everywhere about a port but nothing specific about this board (probably because of the 256k internal flash). If there is some info about a port for this board will be happy to find out. Thank you. Cheers

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

Re: Flash MicroPython on STM32F411CCU6 ?

Post by jimmo » Thu Nov 19, 2020 10:48 pm

valko94 wrote:
Thu Nov 19, 2020 9:57 pm
I managed to flash my STM32F411CEU6 and started to experiment with it. But my question is if anyone managed to flash MicroPython to STM32F411CCU6 ?
Where did you get the STM32F411CEU6 firmware from?

It should be a relatively simple modification to mpconfigboard.h / mpconfigboard.mk to update it for the CCU6.

User avatar
valko94
Posts: 2
Joined: Thu Nov 19, 2020 9:42 pm
Location: Veliko Turnovo, Bulgaria
Contact:

Re: Flash MicroPython on STM32F411CCU6 ?

Post by valko94 » Thu Nov 19, 2020 11:40 pm

I used mcausers firmware from github. The official build from WeAct threw some errors and couldn't get to build the .hex. (probably my fault but it was getting late and had to hit the bed). Both STM32F411CEU6 and STM32F411CCU6 are very similar and I am looking to get the CCU6 board to work mainly as a secondary board for educational purpose and heavy testing. Are mpconfigboard.h / mpconfigboard.mk the only files that need to be changed in order to get it done ?

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

Re: Flash MicroPython on STM32F411CCU6 ?

Post by jimmo » Fri Nov 20, 2020 4:11 am

valko94 wrote:
Thu Nov 19, 2020 11:40 pm
Are mpconfigboard.h / mpconfigboard.mk the only files that need to be changed in order to get it done ?
I assume you're using https://github.com/mcauser/WEACT_F411CEU6

Not quite just those files but close.

You'll likely need to adjust pins.csv to match the way the board is laid out.

In mpconfigboard.mk, it uses boards/stm32f411.ld, which appears to be specific to the 411xE. So you'll need to make a stm32f411xC.ld (which you can place in the same directory as mpconfigboard.mk) which instead has 256kiB of flash (and possibly update the sector layout to match).

mpconfigboard.h you may need to change some pins (also board_init.c)

Post Reply