Trap when accessing module registers ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17614
Level 1
Level 1
Hi,
I get a trap when I try to write registers of a peripheral module? What could be the reason?

#8042000 11483
0 Likes
2 Replies
User16898
Level 4
Level 4
What register you want to write?
module register can be protected by ENDINIT functions you need to disable them via WDT module:
	
uint16 cpu_wdt_password = IfxScuWdt_getCpuWatchdogPassword();
IfxScuWdt_clearCpuEndinit(cpu_wdt_password);
0 Likes
User17615
Level 2
Level 2
First like received
Hi,

Module clock not enabled (Check _CLC register. (Should be written with 0 before the access. Or is there is a protection on the register that needs removal prior to a write access: Safety Endinit or CPU Endinit.
0 Likes