Skip to main content
Shreyas2415
Associate II
Jan 29, 2020 8:59 AM UTC
Solved

ELF loading crashes the device while HEX doesn't ?

0690X00000BwmRPQAZ.jpgI am using STM32F030R8T6, with 64kB flash size. Now I have <1k space left in the flash and whenever I load the ELF file with Atollic TrueSTUDIO the device doesn't work. The watchdog keeps resetting the device. However if I load the .HEX file, everything seems to work. I am a bit concerned and worried what is the problem? Because as soon as I delete something and the free space is >1000 bytes the ELF works. Does anyone know of this problem ?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Jan 29, 2020 12:10 PM UTC

Can you read out the FLASH after being programmed from ELF, e.g. using STLink Utility, and then compare it with the hex?

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
Jan 29, 2020 12:10 PM UTC

Can you read out the FLASH after being programmed from ELF, e.g. using STLink Utility, and then compare it with the hex?

JW

Shreyas2415
Associate II
Jan 29, 2020 12:28 PM UTC

Hey got the problem man. My ELF didn't have the CRC in it and I was checking that in software. Since .HEX loading was also loading the CRC, the problem wasn't there