MCUXpresso build code size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso build code size

1,448 Views
seanwu
Contributor IV

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

seanwu_0-1628124632165.png

seanwu_1-1628124741744.png

seanwu_2-1628124910426.png

 

 

Labels (3)
0 Kudos
Reply
2 Replies

1,412 Views
seanwu
Contributor IV

Thank your sir.

0 Kudos
Reply

1,417 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply