- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Thanks & regards,
Gabriel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Please consider that stated size must be a multiple of 8k (i.e., 303104).
Regards,
Eduardo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Please consider that stated size must be a multiple of 8k (i.e., 303104).
Regards,
Eduardo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I changed it to 311296 and the error is gone!
thank you,
Gabriel