External Flash Loader on STM32G474 with SPI.
Hi,
I'm trying to migrate an old firmware from a STM32F303 to a STM32G474.
The MCU is related to an external Flash W25Q16JV.
The old configuration uses the SPI bus to communicate with the external flash.
So I changed the program in order to adapt the new MCU.
I know by the datasheet that the W25Q16JV can run on QSPI but this configuration is for later.
After I changed the program I can generate the .stldr file and copy it in the external loader folder of the STM32CubeProgrammer. The STM32CubeProgrammer start but keep showing message about Flash protection. On the scope no signal at all.
It seems that the program can't start due to incorrect boot vector and SP pointer.
In the project there is no Startup.s file and no main.
Q1: how the project is suppose to deal with that and where to declare missing starting point.
Q2: Is there any example that shows the correct configuration.
Thanks for your help
