SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
A CPU has write permission to a memory only if that memory is dedicated to that CPU, or if the respective subsystem is the master for that memory (in case of GSx memory). When write accesses are allowed based on the mastership, write accesses can be further protected by setting the CPUWRPROTx bit of the specific register to 1. If write access is done by a CPU to memory where the write access is protected, a write protection violation occurs.
There are two types of CPU write protection violations:
If a write protection violation occurs, write gets ignored, a flag gets set into the appropriate access violation flag register, and the memory address for which the access violation occurred, gets latched into the appropriate CPU write access violation address register. Also, an access violation interrupt is generated if enabled in the interrupt enable register.