FAQ: Register Protection of SPC560Dxx

Document created by Online Support Employee on Feb 26, 2018Last modified by Online Support Employee on Feb 26, 2018
Version 1Show Document
  • View in full screen mode

Q:

I do not quite understand paragraph 29.3 "Modes of operation" of SPC560D30L1, SPC560D30L3, SPC560D40L1, SPC560D40L3 RM0045 Reference Manual:

1) Can my firmware change the protection dynamically, i.e. protect resp. unprotect registers ?

2) Is there any register that can get the source of reset?

 

A:

1) You should activate the register protection of the safety related registers.
There are 2 possibilities to protect the registers either with hard or soft lock protection:
  • if a register is protected by the "hard lock", only a reset can remove the lock
  • if a register is protected by the "soft lock", the software can remove the lock.
From the safety standpoint, the hard lock is a better choice because even if the software "gets crazy" it can't remove the lock.
2) Yes, the user can read the source of the last reset by looking at the status registers of the RGM, FES and DES.

 

 

(extracted from ST Online Support)

Attachments

Outcomes