
It says it is accessible for both privileged
and unprivileged code when access Peripheral
But when I change the Control register with the following assembly code:
/* void ResetPrivileged( void ) */
ResetPrivileged:
MRS r0, control
MOVS r1, #1
ORRS r0, r0, r1
MSR control, r0
DSB
ISB
BX lr
and access the register PTA->PSOR = (1ul << 5)
it go to the HardFault Handler
So in the non-privileged mode, can I access the registers of peripheral devices?