I want to fill the unused memory with 0xff when the output file format is set to Raw binary mode.
I add the "--gap-fill 0xff" in the <Create Flash Image>command line pattern.
But the generate code's size become 536,806,400bytes. It's seem that the objcopy tool fill the gap between the rom and ram.
So how to resolve this problem?
Binary file is raw memory image (all memory in the MCU) - and doesn't contain any info about address - it is continuous file.
You have couple options:
Thanks for you reply.
It's correct that the bin file is generated without any address information. And i saw the bin file is start from vector table(address:0).
After i tried to fill 0xff to unused space, the target bin file become very huge.
I want to find out why the target bin is generated out of the ROM boundary.
I've upload the test project, please see the attachment.
Hope you can give me some advice.