This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I would like to launch the L2RAMW auto-initialization “TRM section §8.2.3” by applying auto-initialization sequences described in “TRM section §2.2.4.2”. But in order to preserve my stack and C variables, my program should launch this sequence in assembler language.
Can you provide me an assembler code which executes the hardware auto-initialization of the 8 L2 SRAM regions (TRM section 2.2.4.2) ?
Best Regards,
Hello,
You can call the function to initialize the SRAM right after power-up. This can be done right after you set up the stack pointers. Also, the meminit() function generated by HALCoGen is already implemented as an assembly routine, specifically to avoid having to use stack.
Regards, Sunil