How can I link variable to HyperRAM in debug mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How can I link variable to HyperRAM in debug mode

跳至解决方案
791 次查看
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 解答
746 次查看
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 回复数
767 次查看
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 项奖励
回复
755 次查看
Vinos
Contributor III
I've no idea,do you have scp file grammer?Or is there any tool to write this.
0 项奖励
回复
747 次查看
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 项奖励
回复