Hi,
When I build the NXP GPIO Polling example from Simulink, I am surprised by the SRAM-DTC used percentage in the final report :
As you can see, half of the SRAM_DTC is used for this example app. It's huge.
On a second hand, we have developped a small similar application in C using the MCUxpresso IDE (without Simulink and genrated code features).
For information, our app is very simple and it just flashes a LED through a GPIO pin.
When we build this application from the IDE, here is the mem report :
It's better and more realistic.
Then, my question is : why mem usage is huge when I use NXP model-based example ?
thanks in advance.
BR,
Sebastian
Solved! Go to Solution.
Hi Sebastian,
The memory allocation is driven by the linker files settings. It looks like the linker files used in the toolbox are a little outdated. Please try with the files in the zip file attached - for MIMXRT1062 (IMXRT-1060 board) and for MIMXRT1064 (IMXRT-1064 board). Copy the linker files in the next locations:
- first in [Toolbox Installation Folder]\mbdtbx_imxrt\linker_files\default\flash
- and if you already have the <model_name>Config folder or your model, replace the appropriate linker files in <model_name>Config/linker_files/flash.
BR,
Alexandra
A debt of gratitude is in order for tending to this subject. I was searching for the data with respect to the equivalent yourtexasbenefits.
Hi Alexandra,
I'm surprised that the linker files of my NXP toolbox would be outdated because I have installed the latest available toolbox from the NXP support site.
May be, a new version is in preparation with up-to-date linker files and will be proposed very soon
Anyway, I'll try again with your files as soon as I get back to my office (home working until the end of this week).
I'll keep you informed.
Thank you very much for your support.
Have a nice day.
BR,
Sebastian
Hi Sebastian,
The memory allocation is driven by the linker files settings. It looks like the linker files used in the toolbox are a little outdated. Please try with the files in the zip file attached - for MIMXRT1062 (IMXRT-1060 board) and for MIMXRT1064 (IMXRT-1064 board). Copy the linker files in the next locations:
- first in [Toolbox Installation Folder]\mbdtbx_imxrt\linker_files\default\flash
- and if you already have the <model_name>Config folder or your model, replace the appropriate linker files in <model_name>Config/linker_files/flash.
BR,
Alexandra
Hi Alexandra,
Good news, the patched linker files work as expected.
In order to compare, here are the generation reports (on the left without the patch and on the right with it) :
As you can see, with your patch, the SRAM_DTC uses only 6.78% for our test application.
It seems correct now
A last question, do you think this patch will be included in a NXP Toolbox release soon ?
Thank you very much for your help !
BR,
Sebastian
Hi Sebastian,
We are planning a new IMXRT release somewhere at the beginning of Q2 next year. Is this ok with you?
Best regards,
Alexandra
Hi Alexandra,
No problem, it's OK for us.
Thank you for this information.
Have a nice day.
BR,
Sebastian