Datasheet
82
42023ES–SAM–07/2013
ATSAM4L8/L4/L2
8.9.11.2 Status Register
Name: SR
Access Type: Read-Only
Offset: 0x04
Reset Value: 0x00000000
•STATE: State
• DBGP: Debugger present
1: A debugger is present (TCK falling edge detected)
0: No debugger is present
•PROT: Protected
1: The protected state is set. The only way to overcome this is to issue a Chip Erase command.
0: The protected state is not set
• EN: Enabled
1: The block is in ready for operation
0: the block is disabled. Write operations are not possible until the block is enabled by writing a one in CR.EN.
•LCK: Lock
1: An operation could not be performed because chip protected state is on.
0: No security issues have been detected sincle last clear of this bit
• FAIL: Failure
1: The requested operation failed
0: No failure has been detected sincle last clear of this bit
• BERR: Bus Error
1: A bus error occured due to the unability to access part of the requested memory area.
31 30 29 28 27 26 25 24
----- STATE
23 22 21 20 19 18 17 16
--------
15 14 13 12 11 10 9 8
-----DBGPPROTEN
76543210
- - - LCK FAIL BERR HCR DONE
Value State Description
0
IDLE Idle state
1
CE Chip erase operation is ongoing
2
CRC32 CRC32 operation is ongoing
3
FSPR Flash User Page Read
4-7
- reserved