External SPI Flash Memory #15644
-
Hi, I am new with the micropython and I am currently adapting it to a custom hardware, based on a STM32F746NE chip. At the moment I am trying to make the external flash chips to work. The one connected to the QSPI I already got to work but now I don't know how to do it with the one connected to the SPI interface. What can I possiply do? Is only the MBOOT option available? My custom hardware does not use USB, only SWD, does the MBOOT wotk in thi case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you look at the PYBD boards bdev.c file and mpconfigboard.h they use two external flash chips, one on QSPI which can be used for the main firmware executable code (supports memory mapped use), the second is connected with SoftQSPI and can be used for the filesystem data storage. https://github.com/micropython/micropython/blob/master/ports/stm32/boards/PYBD_SF2/bdev.c If your second one is wired to hardware spi you can use that instead of softqspi configuration eg. If you only program your board via SWD you likely wont need to use / build with mboot support at all, unless you want OTA support in future to load firmware from filesystem (called fsload in mboot). |
Beta Was this translation helpful? Give feedback.
If you look at the PYBD boards bdev.c file and mpconfigboard.h they use two external flash chips, one on QSPI which can be used for the main firmware executable code (supports memory mapped use), the second is connected with SoftQSPI and can be used for the filesystem data storage. https://github.com/micropython/micropython/blob/master/ports/stm32/boards/PYBD_SF2/bdev.c
If your second one is wired to hardware spi you can use that instead of softqspi configuration eg.
micropython/ports/stm32/boards/ADAFRUIT_F405_EXPRESS/bdev.c
Line 4 in a6fa85d
If you only program your board via SWD you likely wont need to use / build with mboot support at all, unless you want OTA support…