Hi all,
i was able to compile and run Micropython on the black pill according to these instructions:
viewtopic.php?t=7154
Thanks to mcauser. However, since remaining disk space is so small on the board, i soldered a Winbond W25Q64FVSIG flash, including the 100nF capacitor to the board.
In mpconfigboard.h, i changed the following (also according to the instruction mentioned above):
Use external flash:
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#Choose proper size:
#define MICROPY_HW_SPIFLASH_SIZE_BITS (64 * 1024 * 1024) // W25Q64 - 64 Mbit (8 MByte)
However, after flashing the recompiled hex-file to the board and plugging the board via USB-C, Windows is asking me to format the drive (which won't work). This did not happen with the internal flash version, the usual files popped up in the explorer there.
However, i am able to get a REPL of the board when connecting to it via Tera Term.
Any ideas what went wrong here?
Also, what settings should i choose for these lines in mpconfigboard.h:
#define MICROPY_HW_HAS_FLASH
#define MICROPY_HW_FLASH_LATENCY
Best Regards,
Raphael
WeAct STM32F411CEU6 black pill with 64MBit external flash
Re: WeAct STM32F411CEU6 black pill with 64MBit external flash
Code: Select all
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_3
#define MICROPY_HW_HAS_FLASH (1)
Re: WeAct STM32F411CEU6 black pill with 64MBit external flash
Thanks, but there was also something wrong with the SPI pins, at least with my board (WeAct 2.0) they were different. However, now it works.