Hi, I saw the "RAM init" and "Clear RAM for boot stack" operations in TRM of 28388. would you mind telling me the difference between these two operations?
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.
Hi, I saw the "RAM init" and "Clear RAM for boot stack" operations in TRM of 28388. would you mind telling me the difference between these two operations?
Hi Zhu,
On POR reset all the RAMs are initialized. On XRSn reset only a subset of M0 RAM which is used for boot ROM stack is initialized.
Thanks and regards, Pawan
Thank you Pawan! I have also just found the section reserved for the Boot ROM stack in the cmd file!
I was also wondering if there are any difference between setting RAM to 0 using memset function and RAM inittialization described in the table?
Regards,
Zhu
The RAM initialization described in the table initializes the entire RAM block using hardware. The memset function is a software write of 0 into memory.
Regards, Pawan
So, is it equivalent to RAM initilization if I set RAM to 0 with memset?
Regards,
Zhu
Hardware RAMinit will initialize the entire selected RAM blocks and is faster. It is not possible to initialize a subset of RAM addresses using the hardware ram init. Memset function can be used to initialize range of memory addresses within a RAM and any value can be set.
Regards, Pawan