MCUXpresso build code size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCUXpresso build code size

2,382 次查看
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

 

 

标签 (3)
0 项奖励
回复
2 回复数

2,346 次查看
seanwu
Contributor IV

Thank your sir.

0 项奖励
回复

2,351 次查看
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 项奖励
回复