5.2.2 TSCAL Data from OTP Emulation Mode

In OTPC Emulation mode, the OTP memory (not yet programmed) is emulated with volatile content stored into the SECURAM. This mechanism is very convenient during development phases of the product when the OTP content is not yet stable.

When OTPC Emulation mode is enabled, at the next reboot, the TSCAL data is copied into:

  • SRAM: address mentioned in the previous section and
  • SECURAM: at offset 0x800, start of the user area emulation part

The TSCAL data is readable as a regular packet by the application using the OTPC.

Warning: After enabling OTP Emulation mode, a reset must be performed before any other packet write. When the ROM code starts, it reads the EMULATION_ENABLED flag in the backed up BSC_CR register. If this flag is set, the packets are copied into SECURAM, overwriting the existing content.

Subsequent "packet write" operations by SAM-BA or the user application will be performed at addresses just after the packet copied by the ROM code.