Question
Issue while adding padding to generated file
In my project I need to add padding to few flash address. I generated hex file which has flash data till 0x1000(Suppose) but I want to pad till 0x4000 with 0xFF. I am using below gcc commands but unable to get desired output.
arm-none-eabi-objcopy --set-start 0x08000000 --pad-to=0x4000 --gap-fill=0xFF BootloaderDiscovery.elf BootloaderDiscovery.bin -O binary
any suggestions ?