2021-07-17 12:34 PM
I have developed a custom bootloader for updating the fw via usb stick for stm32F7...I would like to integrate the possibility to update the external flash memory via quadspi... Which are the adds what I should introduce to the initial bootloader in order to update the external memory? Is it enough to add the quadspi connectivity in the ioc project and then import two files (quadspi_cmd.h and quadspi_cmd.c) and after reading the content of the usb stick call the routine CSP_QSPI_WriteMemory? Thanks a lot for your kind support
2021-07-17 04:27 PM
Personally, I'd probably merge in the pin stuff from one of the DISCO/EVAL type BSP, changing the pin assignments in the MSP code.
The CSP stuff here looks like you should be able to take it at a file level. Write is decomposed into page size chunk so that shouldn't need any additional work.
Might want to take a look at the External Loader examples to understand how this interacts with the CSP layer, but it looks reasonably clean / straight forward.