Hi,
I have not been able to successfully program the FLASH on a STM32F105RB (128kB FLASH) using JLink.exe. The load appears to complete ok, but the part fails validation.
If I read the FLASH memory after programming, sections are written but others are left in their erased states. For example:
address 0x8000000 to 0x80003FF blank
address 0x8000400 to 0x80007FF programmed
address 0x8000800 to 0x8000BFF blank
address 0x8000C00 to 0x8000FFF programmed
the pattern repeats for the remaining program space.
I have tried running JLink.exe using a script and direct from the command line and I get the same results. The script is as follows:
exec device = STM32F105RB
exec EnableFlashDL
r
h
loadbin "C:\Insite_Production\Programming Files\program_dir\srcFile.bin", 0x8000000
r
g
exit
Notes:
I have tried replacing exec device = STM32F105RB with device = STM32F105RB, and I have tried removing the exec EnableFlashDL command.
I can program the part through the IAR environment.
If I have programmed the part using IAR and then try using JLink.exe, FLASH is not altered and it verifies at the end of programming.
I have tried using JLink.exe v4.20 and v4.50
I have updated the JLINK tool to the latest FW revision as prompted by JLink.exe v4.50
I have used essentially the same script to successfully program an STM32F103R8.
I have tried changing the device type to other 128kB FLASH STM32F parts and got similar, unsuccessfull results.
Any idea what might be wrong?
Thank You,
Doug
I have not been able to successfully program the FLASH on a STM32F105RB (128kB FLASH) using JLink.exe. The load appears to complete ok, but the part fails validation.
If I read the FLASH memory after programming, sections are written but others are left in their erased states. For example:
address 0x8000000 to 0x80003FF blank
address 0x8000400 to 0x80007FF programmed
address 0x8000800 to 0x8000BFF blank
address 0x8000C00 to 0x8000FFF programmed
the pattern repeats for the remaining program space.
I have tried running JLink.exe using a script and direct from the command line and I get the same results. The script is as follows:
exec device = STM32F105RB
exec EnableFlashDL
r
h
loadbin "C:\Insite_Production\Programming Files\program_dir\srcFile.bin", 0x8000000
r
g
exit
Notes:
I have tried replacing exec device = STM32F105RB with device = STM32F105RB, and I have tried removing the exec EnableFlashDL command.
I can program the part through the IAR environment.
If I have programmed the part using IAR and then try using JLink.exe, FLASH is not altered and it verifies at the end of programming.
I have tried using JLink.exe v4.20 and v4.50
I have updated the JLINK tool to the latest FW revision as prompted by JLink.exe v4.50
I have used essentially the same script to successfully program an STM32F103R8.
I have tried changing the device type to other 128kB FLASH STM32F parts and got similar, unsuccessfull results.
Any idea what might be wrong?
Thank You,
Doug