‎2019-12-03 01:10 PM
Hi,
i am building the code for STM32WB55. I have enabled "Convert to binary file (-O binary)" and "Convert to Intel Hex file (-O hex)".
I got 2 files:
-bin file - 402MByte size
-hex file - 183kByte
As i can see, bin file has 62kByte of real data and rest of data are "0x00". How i can make just normal BIN file? Please help to find out :)
--
Best regards,
Sergii
Solved! Go to Solution.
‎2019-12-03 07:10 PM
Hi Sergii,
I also ran into similar issue a while ago. Could you help check if your linker script contains MB_MEM2 with (NOLOAD)? If not, please add (NOLOAD) right after MB_MEM2 just like what you have for MAPPING_TABLE and MB_MEM1. Here is my record for your reference.
Regards,
Ethan
‎2019-12-03 01:48 PM
This is a recurring question here.
JW
‎2019-12-03 03:53 PM
.HEX files can be sparse, .BIN files cannot.
Keil's tools will break this into multiple files under different directories if you have separate sections in the .ELF/.AXF
‎2019-12-03 07:10 PM
Hi Sergii,
I also ran into similar issue a while ago. Could you help check if your linker script contains MB_MEM2 with (NOLOAD)? If not, please add (NOLOAD) right after MB_MEM2 just like what you have for MAPPING_TABLE and MB_MEM1. Here is my record for your reference.
Regards,
Ethan
‎2019-12-04 01:12 PM
Hi Ethan Huang,
thanks a lot! Excellent =) ! Now i have OK binary as well!
My linker scrip had no "NO LOAD" statement. I have added it and now file is 63kB