QSPI in TC234 Controller

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

cross mob
User16280
Level 1
Level 1
Hi,

Need suggestions regarding ENDINIT feature to write into CLC register.
Here is the code i have tried to work with.
_safety_endinit_clear();

Spi_Regs->Clock_Control_Reg &= 0x00000000;

_safety_endinit_set();

This Endinit clear function is same as that i have used to write into CCU(Mcu Clock registers). But i see that there is an exception generated and jumping to trap functions.
Can anyone suggest if this method is invalid or anything else to be taken care?

Your help is highly appreciated & Thanks in Advance!!!
0 Likes
2 Replies
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
The SPI CLC register is CPU ENDINIT protected. You have used the "Safety ENDINIT" function.

You can check the register access via the function register table in the chapters.
3375.attach
0 Likes
User16280
Level 1
Level 1
Hey!!

Thanks for your reply. I have found the cause of (Trap Jump). The registers i am trying to access are just Endinit protected(Not Safety Endinit) which means that i have to clear CPU0CON register's endinit bit to be written.

Now that i am able to enable the QSPI module.

Can you share any code to toggle a pin on TC23X? Thanks in advance!!
0 Likes