QN9090 Post Build Binary Size Error

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

QN9090 Post Build Binary Size Error

跳至解决方案
13,034 次查看
gllake
Contributor I

Hello,

My project is running into an error generated by the post-build script dk6_image_tool.py. The error occurs after adding an additional source folder to my project, increasing the flash utilization from 43.20% to 45.08%. I am not sure why increasing the compiled binary size is causing this error, as there is plenty of free space in flash? I can ignore the error, but my board does not work at all after flashing it with the resulting binary--although the source is functionally unchanged. Please see attached for relevant content.

qn9090-build-console-with-sysview.PNG

 

Thanks & regards,

Gabriel

 

标记 (1)
0 项奖励
回复
1 解答
12,913 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Could you please try increasing the __app_stated_size__? This symbol should be found in project properties > C/C++ Build > Settings > MCU Linker > Miscellaneous.
 EduardoZamora_0-1684780748486.png

Please consider that stated size must be a multiple of 8k (i.e., 303104).

Regards,
Eduardo.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
12,974 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @gllake

Hope you are doing well.

Could you please provide more details about your project? Are you using any of the example projects from the QN9090 SDK as base for your application? How are you modifying the project?

Which SDK version are you using? What is the version of MCUXpresso you are using?

By any chance, did you modify the dk6_image_tool.py script?

Any additional information that could help me to try to reproduce this issue on my side is appreciated.

Regards,
Eduardo.

0 项奖励
回复
12,965 次查看
gllake
Contributor I

Hi Eduardo, thanks for the quick reply.

My project is based off of the wireless_uart_bm project in the QN9090DK6 SDK version 2.6.5. MCUXpresso v11.4.1_6260. I have not modified the python script.

I have added my own modifications to the project and had that working well for several days, then I added an additional source folder to add SEGGER System View support to the project, and that is when the post build script started throwing this error. I have not yet used any functions from the System View source folder I added and there are no build errors. However, when I exclude the System View source folder from my build, the binary size appears to be less than the "stated_size" threshold and there is no error. 

What is the stated size?

 

regards,

Gabriel

0 项奖励
回复
12,914 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Could you please try increasing the __app_stated_size__? This symbol should be found in project properties > C/C++ Build > Settings > MCU Linker > Miscellaneous.
 EduardoZamora_0-1684780748486.png

Please consider that stated size must be a multiple of 8k (i.e., 303104).

Regards,
Eduardo.

0 项奖励
回复
12,903 次查看
gllake
Contributor I

I changed it to 311296 and the error is gone!

 

thank you,

Gabriel

0 项奖励
回复