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.
Solved! Go to Solution.
Hi @Vinos ,
The grammar is described in MCUXpresso user guide 20.5.4. You can edit it by any text editor.
Regards,
Jing
Hi @Vinos ,
You have to make the script by yourself. It is very similar to SDRAM initialize script.
Regards,
Jing
Hi @Vinos ,
The grammar is described in MCUXpresso user guide 20.5.4. You can edit it by any text editor.
Regards,
Jing