mcauser / WEACT_F411CEU6

MicroPython board definition for the WeAct STM32F411CEU6 board
127 stars 35 forks source link

F401 support #3

Open jnsaff opened 4 years ago

jnsaff commented 4 years ago

Hi, I have the STM32F401CCU6 version of the weact v2.0 board and I'm getting the following error.

Do you have any idea whether this is due to the board definition being different or some other issue. Tried with 2 boards and both are the same.

Thank you!

[nix-shell:~/Documents/mpy/micropython/ports/stm32]$ make BOARD=WEACT_F411CEU6 deploy V=1 python3 ../../py/makeversionhdr.py build-WEACT_F411CEU6/genhdr/mpversion.h python3 ../../tools/makemanifest.py -o build-WEACT_F411CEU6/frozen_content.c -v "MPY_DIR=../.." -v "MPY_LIB_DIR=../../../micropython-lib" -v "PORT_DIR=/home/jaanus/Documents/mpy/micropython/ports/stm32" -v "BOARD_DIR=boards/WEACT_F411CEU6" -b "build-WEACT_F411CEU6" -f"-march=armv7m" boards/manifest.py Writing build-WEACT_F411CEU6/firmware.dfu to the board python3 ../../tools/pydfu.py --vid 0x0483 --pid 0xDF11 -u build-WEACT_F411CEU6/firmware.dfu File: build-WEACT_F411CEU6/firmware.dfu b'DfuSe' v1, image size: 321965, targets: 1 b'Target' 0, alt setting: 0, name: "ST...", size: 321680, elements: 2 0, address: 0x08000000, size: 14784 1, address: 0x08020000, size: 306880 usb: 0483:df11, device: 0x0000, dfu: 0x011a, b'UFD', 16, 0x777af580 Writing memory... 0x08000000 14784 [=========================] 100% 0x08020000 306880 [========== ] 42% DFU: set address failed (STATE_DFU_ERROR) make: *** [Makefile:554: deploy] Error 1

SuperThunder commented 4 years ago

The F401 version only has 256KB of flash and 64KB of RAM, so the firmware for F411 will not work at all (it expects 512KB of flash and 128KB of RAM, as well as whatever other differences there are between the boards)

Give this WeAct repo a try: https://github.com/WeActTC/MiniF4-STM32F4x1/tree/master/STM32F401CCU6-Black-Board/SDK/micropython