10.1.2 Registers Access Permissions

For PIC32CM SG devices, peripherals are defined as secure or non-secure by the user through the BOOTCFG1/1A H2PB fuses, which are copied by the ROM code in the related registers, or by directly writing in the H2PB registers. The PORT and EIC, when defined as secure in H2PB will behave as Mix-Secure peripherals (See below). The HSM-Lite is always Secure. An empty or invalid BOOTCFG1/1A configuration will be replaced by a hardcoded configuration applied by the ROM code.

Each Peripheral has different register access permissions depending on its Security Attribution :

For peripherals configured as Secure:

  • Non-Secure access is discarded and a synchronous bus error is generated
  • Secure access is granted

For peripherals configured as Non-Secure:

  • Secure and Non-Secure accesses are granted