cancel
Showing results for 
Search instead for 
Did you mean: 

Hex file: adding dummy bytes

Sanjay8344
Associate II

within the SM32 cube Ide After creating a hex file, I noticed that some lines had less data than others due to linker separation. How can I use the stm32 cube ide to add dummy bytes to the memory?

Sanjay8344_0-1720420608647.png

 

2 REPLIES 2
AScha.3
Chief II

> that some lines had less data than others

Thats "normal" in a (Intel-)HEX file.

see:

https://developer.arm.com/documentation/ka003292/latest/

 

>to add dummy bytes to the memory

Why ?

If you feel a post has answered your question, please click "Accept as Solution".

In order to extract data from a hex file and write it into memory while working on the bootloader, I must do a remote update. In order to accomplish this, I must write 0xffff in a location where there is less data on the specific lines. I now know that the linker script can be used to change it but not How to do that.