Jan 03, 2019
06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 03, 2019
06:22 AM
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!!!
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!!!
- Tags:
- IFX
2 Replies
Jan 03, 2019
03:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 03, 2019
03:17 PM
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.
You can check the register access via the function register table in the chapters.
Jan 04, 2019
12:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 04, 2019
12:10 AM
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!!
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!!
This widget could not be displayed.