infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: QSPI in TC234 Controller

  1. #1
    New Member New Member vvssg is on a distinguished road
    Join Date
    Dec 2018
    Posts
    3
    Points
    45

    QSPI in TC234 Controller

    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!!!

  2. #2
    Advanced Advanced cwunder is on a distinguished road
    Join Date
    Feb 2015
    Location
    USA
    Posts
    66
    Points
    1157.5
    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.
    Click image for larger version

Name:	2019_01_03_18_14_45_tc23x_tc22x_um_v1.1.pdf_Adobe_Acrobat_Reader_DC.png
Views:	2
Size:	50.4 KB
ID:	3741

  3. #3
    New Member New Member vvssg is on a distinguished road
    Join Date
    Dec 2018
    Posts
    3
    Points
    45
    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!!

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.