I am using an AT91SAM7X512 for my application. I perform a software reset after certain action. The processor resets. But upon reading the RSTC_RSR status register I get an invalid register value for the reset type: RSTC_RSR = 0x700 which translates the RSTTYP register value to be 111 . This condition is not defined in the data sheet. I am reading the reset type by using the statement unsigned int buffer = AT91C_RSTC_RSTTYP;.
I am using an AT91SAM7X512 for my application. I perform a software reset after
Share
AT91C_RSTC_RSTTYPis the constant0x700, it is the bitmask to mask out theRSTTYPbits in theRSTC_SRregister (defined inAT91SAM7X512.h):To read the register there is a pointer
AT91C_RSTC_RSR:So
should work for reading the register (but I didn’t test it).