SRAM-DTC usage anormally huge when I use i.MXRT106x example generated code on evaluation kit ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SRAM-DTC usage anormally huge when I use i.MXRT106x example generated code on evaluation kit ?

ソリューションへジャンプ
3,423件の閲覧回数
scocmr
Contributor II

Hi,

When I build the NXP GPIO Polling example from Simulink, I am surprised by the SRAM-DTC used percentage in the final report :

build_simulink_exemplePolling.JPG

 

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 :

build_ide.JPG

 

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

0 件の賞賛
返信
1 解決策
3,401件の閲覧回数
nxa11767
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

6 返答(返信)
3,297件の閲覧回数
Lambert1
Contributor I

A debt of gratitude is in order for tending to this subject. I was searching for the data with respect to the equivalent yourtexasbenefits.

0 件の賞賛
返信
3,392件の閲覧回数
scocmr
Contributor II

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

0 件の賞賛
返信
3,402件の閲覧回数
nxa11767
NXP Employee
NXP Employee

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

3,376件の閲覧回数
scocmr
Contributor II

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) :

build_simulink.JPGAfter_linker_patch.JPG

 

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

 

0 件の賞賛
返信
3,357件の閲覧回数
nxa11767
NXP Employee
NXP Employee

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

0 件の賞賛
返信
3,350件の閲覧回数
scocmr
Contributor II

Hi Alexandra,

 

No problem, it's OK for us.

Thank you for this information.

Have a nice day.

 

BR,

Sebastian

0 件の賞賛
返信