QN9090 Post Build Binary Size Error

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

QN9090 Post Build Binary Size Error

Jump to solution
8,132 Views
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

 

Tags (1)
0 Kudos
Reply
1 Solution
8,011 Views
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.

View solution in original post

0 Kudos
Reply
4 Replies
8,072 Views
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 Kudos
Reply
8,063 Views
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 Kudos
Reply
8,012 Views
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 Kudos
Reply
8,001 Views
gllake
Contributor I

I changed it to 311296 and the error is gone!

 

thank you,

Gabriel

0 Kudos
Reply