Dear sir,
I tried to build KW41 SDK example "frdmkw41z_wireless_examples_bluetooth_ble_fsci_black_box_freertos" using MCUXpresso, and the real code size is 242KB. But if I built binary file, the code size is 510KB. I checked the binary file, found MCUXpresso filled in "00" and "FF" after 3AD91. How to set MCUXpresso to build binary file code size to 242KB without "00" and "FF" after 3AD91?
Thanks.
BR,
Sean
Thank your sir.
Hi Sean,
Hope you are doing well. The binary files generated by MCUXpresso for the KW41Z (specifically, for BLE projects and examples) are always the full 510kB in size, as to overwrite the whole PROGRAM_FLASH memory region, even filling the unused space with a "0xFF" value.
This is done on purpose, so old code is not left behind in unused memory regions of the PROGRAM_FLASH.
Hope this helps.
Best Regards,
Ricardo