Skip to main content
Shreyas2415
Associate II
January 29, 2020
Solved

ELF loading crashes the device while HEX doesn't ?

  • January 29, 2020
  • 2 replies
  • 1753 views

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.
Best answer by waclawek.jan

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
January 29, 2020

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
January 29, 2020

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