Help with finding generated code size

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

Help with finding generated code size

1,153 次查看
Poley
Contributor V

Hi all, due to the shortage of chips in the world we are having to look at alternatives for our design. I use S32K148 BGA and currently I can only get S32K144 BGA. The information I need for me to be able to order the chips is how do I find out if my application code would fit? I cant see anywhere where the code size is displayed when you build the model. Obviously the 148 has 4x the program memory size o the 144 so I need to make sure that my application code would actually be able to be flashed. I would be using a bootloader as well as the application code.

Thank you, I would really appreciate quick help with this.

0 项奖励
回复
1 回复

1,148 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @Poley 

For the code size report, we have added such a feature in the MBDT for S32K1xx 4.3.0, so now in the diagnostic viewer, you shall be able to see the code size.

mariuslucianand_1-1668380766605.png

If you are using an older version of our toolbox, you could type the following command in MATLAB, by setting the current folder inside your generated *_mbd_rtw folder, and replacing the name of the .elf file with the one of your model.

system([fullfile(mbd_find_s32k_root(), 'tools\gcc-6.3-arm32-eabi/bin/arm-none-eabi-size'), ' --format=berkeley gpio_s32k144.elf'])

mariuslucianand_2-1668380813746.png

Hope this helps,

Marius