I have a spi flash, W25Q16, and it is not used as QSPI, so I can not take advantage of the built-in J-Link QSPI flash loader.
My colleague has create a working IAR EWARM flash loader project, which can be used in STCubeProgrammer with ST-Link probe.
However, my main probe is J-Link and I like to modified the project so I do not have to switch between J-Link and ST-Link.
The MCU I used is STM32F765ZI.
I have made a little progress, like change code block name to PrgCode so JFlash stop complaining "no PrgCode".
The current error that I am trying to resolve is:
Specified flashloader exceeds max. size of 64 KB
From search, I find a thread mentioned about JFlash check beginning and end of code section.
I check my .map file and elf file and make sure all code and data are placed between 0x20000000 and 0x20040000
I also check SEGGER flash load driver elf, "ST_STM32F7xxxx_DualBank_2MB.elf", and find symbols like __PrgCode_start__, and __PrgCode_end__.
But, if I change those names, JFlash still treat them as valid driver.
I can post my entire IAR project if needed to get help.
My colleague has create a working IAR EWARM flash loader project, which can be used in STCubeProgrammer with ST-Link probe.
However, my main probe is J-Link and I like to modified the project so I do not have to switch between J-Link and ST-Link.
The MCU I used is STM32F765ZI.
I have made a little progress, like change code block name to PrgCode so JFlash stop complaining "no PrgCode".
The current error that I am trying to resolve is:
Specified flashloader exceeds max. size of 64 KB
From search, I find a thread mentioned about JFlash check beginning and end of code section.
I check my .map file and elf file and make sure all code and data are placed between 0x20000000 and 0x20040000
I also check SEGGER flash load driver elf, "ST_STM32F7xxxx_DualBank_2MB.elf", and find symbols like __PrgCode_start__, and __PrgCode_end__.
But, if I change those names, JFlash still treat them as valid driver.
I can post my entire IAR project if needed to get help.