2022-09-08 07:41 AM
Is there a way to program spi flash using st-link? The spi flash which i am using is AT25SF321B.
Solved! Go to Solution.
2022-09-09 05:30 AM
No
Perhaps you want something like a FlashCat or Universal Programmer
2022-09-08 08:10 AM
Yes if is connected into STM32 SPI
2022-09-08 08:19 AM
Can i program spi flash from binary file?
2022-09-08 08:31 AM
Yes
You'd need to write an External Loader, that supports your memory device, and the pin/peripheral means of connecting to it, and doing the read, erase, and write.
Methodology materially similar
2022-09-09 01:25 AM
Is there any way to program spi flash using only ST-LINK? I mean connecting spi flash directly to ST-LINK for programming spi flash IC.
2022-09-09 05:30 AM
No
Perhaps you want something like a FlashCat or Universal Programmer
2022-09-09 12:35 PM
https://www.embeddedcomputers.net/products/FlashcatUSB/
One could also add a ZIF socket to a NUCLEO or DISCO type board, perhaps via a shield adapter, and then code an app, and program and communicate with the memory chip. Say using the VCP as a means to send a .HEX file, or something.
2022-09-09 02:26 PM
> Say using the VCP as a means to send a .HEX file, or something.
Semihosting I/O can be used to easily write code that moves data from the host machine and programs it in-system. It is slowish but simple. Just opens one or several files on the host and reads.
We tested it on CubeIDE + OpenOCD and EWARM, both over st-link v3.