Hi, I want to access the restart status register and read out its corresponding value to analyze the cause of the restart. By referring to the manual, the corresponding address is 0x400F8008, but using devmem and test Demo to access respectively, the return is SEGV. Could you please tell me how to access this register and get the corresponding value.
Hi @kevin_zhao ,
Maybe you can access the register by direct accessing
val = (*(unsigned int*)0x400F8008);
Regards,
Jing
Hi @jingpan,
Thanks for you suggestion, I have try the method as you said, Maybe there is memory access protetcted by linux core, that also can't access the value of register, but I have solved this question by use the file named "dev/mem" with lseek and read operation
Regards~