Support for STM32F401 non nucleo (i.e. "generic") board? #13083
-
Hi guys, But I can't find any resources about how and which hex file to program. I could only find information about STM32F411 or that in general micropython's minimal requirements are 256 KB flash and 64 KB Ram, which are met with this board. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There are two boards with an STM32F401 with pre-built firmware, the Espruino Pico and Nucleo F401RE. These firmware could work, bit maybe problems in the Pin name matching. I would take that as starting point. |
Beta Was this translation helpful? Give feedback.
You could just use one of the existing firmware files and try them. Otherwise: yes, that's what you have to do.
You can start by copying the directory for one of the other F401 boards. Adapting the pins is easy. In the respective board directory there is a pins.csv file, which maps boards names to CPU names. For the Nucleo board, board and cpu name are identical. The other files which may have to be changed is the mpconfigboard.h,which is more tricky and requires knowing the hardware details. The board looks like the WEACT Blackpill board with the stm32F401. More information e.g. here: https://stm32-base.org/boards/STM32F401CCU6-WeAct-Black-Pill-V1.2.html.
Alternatively you can get a boar…