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 Team,
My customer use the code below to read RESC at RAM 0x002C:
#define BOOTSTATUS 0x0000002C Uint16 *pusCPU01BufferPt; //发送内容指针 Uint32 *BOOTSTAT; BOOTSTAT = (Uint32 *)BOOTSTATUS; pusCPU01BufferPt[15] = ((*BOOTSTAT)>>16); //高位 pusCPU01BufferPt[16] = *BOOTSTAT;
Does these code work properly for reading reset source which stored by BOOT ROM?
Thanks & Regards,
Yale Li
Yale,
The question is not clear. Does it pertain to reading the Reset Cause register at offset 80h? Once you confirm, a S/W expert will help you.
Hi Hareesh,
Does it pertain to reading the Reset Cause register at offset 80h?
Yes, but this register can not read directly because it will be clear by Boot ROM after reset.
Thanks & Regards,
Yale Li
till line 7 it is fine and i dont understand the reason for storing in array indexed to 15 and 16.
you can store in a variable to check if you are able to get the status information correctly.
Then you can store in pointer/array.