How can I link variable to HyperRAM in debug mode

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

How can I link variable to HyperRAM in debug mode

ソリューションへジャンプ
1,008件の閲覧回数
Vinos
Contributor III

IDE:MCUXPresso IDE

I've initialized hyperram successfully through code,and I have to make the HyperRAM the first RAM in memory details for my project has defined many variables.(In MCUXpresso IDE,variables always link to the first RAM and won't link to next automatically)It's annoying if I add a attribute(section()) to all the variables.

But program can't run successfully because copying data segment from NOR flash to uninitialized hyperram in ResetISR().I've used SDRAM to do the same thing,program runs if I initialize SDRAM(SEMC and clock) at the beginning of ResetISR.But the data segment won't copy to SDRAM.

Now I've tried initialize hyperram at the beginning of the ResetISR(),but even program doesn't run(Hardfault when executing CLOCK_ENABLE,due to redlib?).

SDRAM has a DAP script to initialize SDRAM before debuging.Program runs and data segment is copied using the DAP script.

But I don't have a script to initialize hyperram,how can I write one?

 

By the way,ROM bootLoader can initialize hyperram through XMCD or DCD,but MCUXPresso IDE seems to jump to the program by itself instead of resetting to ROM bootloader.So it doesn't work when debugging.

0 件の賞賛
返信
1 解決策
963件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @Vinos ,

The grammar is described in MCUXpresso user guide 20.5.4. You can edit it by any text editor.

 

Regards,

Jing

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
984件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @Vinos ,

You have to make the script by yourself. It is very similar to SDRAM initialize script.

 

Regards,

Jing 

0 件の賞賛
返信
972件の閲覧回数
Vinos
Contributor III
I've no idea,do you have scp file grammer?Or is there any tool to write this.
0 件の賞賛
返信
964件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @Vinos ,

The grammar is described in MCUXpresso user guide 20.5.4. You can edit it by any text editor.

 

Regards,

Jing

0 件の賞賛
返信