ATSAM Device Series

From SEGGER Wiki
Revision as of 15:41, 17 May 2018 by Nino (talk | contribs) (Created page with "__TOC__ =Set Flash Security Bit= Most ATSAM series devices support securing Flash by writing to the NVMCTRL module. This can be achieved by using J-Link Commander or J-Flash(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Set Flash Security Bit

Most ATSAM series devices support securing Flash by writing to the NVMCTRL module. This can be achieved by using J-Link Commander or J-Flash(exit steps).

A ATSAM series device supports this feature if group configuration Set Security Bit or in short SSB is supported by the NVMCTRL. This information can be found int he corresponding user manual.

Example secure command with J-Link Commander

The following command sequence can be used to secure the following ATSAM devices:

  • ATSAMD20, SAMD21, SAMC21, SAMHA1, SAMR21, SAML21...

w4 0x41004000, 0xA545

  • ATSAME51, ATSAME52, ATSAME54, ATSAMD51...

w4 0x41004004, 0xA516

Unlock secured ATSAM devices

Unlocking ATSAM devices is supported with all devices that have a Device Service Unit or short DSU present. The unlock process will then be handled automatically by J-Link when trying to connect to the device.