Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_OnzerOS Banner_AURIX_DevelopmentStudio


infineon4engi@twitter twitter

infineon4engineers Facebook

infineon@linkedin linkedin

infineon@youtube youtube


+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    farazo
    Guest

    QSPI Initialization code for TC23x

    Hello All,
    I need Initialization code for QSPI on TC23x. I don't intend to use DMA. I need to communicate with or without Interrupts. Thanks.

  2. #2

    Infineon Employee
    Infineon Employee
    cbonfigl is on a distinguished road
    Join Date
    May 2015
    Location
    Michigan
    Posts
    1
    Points
    12.5
    Hello Farazo,
    Glad to hear that you are using the AURIX and want to get things up and running!

    Do you have access to the AURIX documentation, SW Framework, and iLLD on myinfineon.com?

    The SW Framework and iLLD have QSPI initialization code which you can use to accomplish your task.

    If you need help getting your myinfineon.com account, please let me know.

    Carl Bonfiglio
    Infineon Marketing Manager
    carl.bonfiglio@Infineon.com
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    usha cy
    Guest
    Hi Do you got any updates on this. Even am looking for this .

  4. #4
    dr.dzhevaga
    Guest
    Hope you will find my example helpful.

    spi.zip

  5. #5
    usha cy
    Guest
    Thanks for your sample code.. its helped me in better understanding.

  6. #6
    Intermediate Intermediate KDN is on a distinguished road
    Join Date
    Oct 2017
    Posts
    44
    Points
    398.75
    Hi,
    Can anyone help me to understand it.

    uint16 endinit_pw = IfxScuWdt_getCpuWatchdogPassword();
    IfxScuWdt_clearCpuEndinit(endinit_pw);
    ((Ifx_QSPI*)spiModule)->CLC.U = 0;
    volatile uint32 dummy = ((Ifx_QSPI*)spiModule)->CLC.U;
    IfxScuWdt_setCpuEndinit(endinit_pw);

  7. #7
    Advanced Advanced cwunder is on a distinguished road
    Join Date
    Feb 2015
    Location
    USA
    Posts
    128
    Points
    2467.5
    When you write to any special function register (SFR) there are write attributes associated with them. For example do you need to be in supervisor or user mode and if it is a critical register it could be CPU or Safety ENDINIT protected.

    The CLC register in the QSPI peripheral has the following write attributes (Supervisor mode and it is CPU ENDINIT protected).
    Click image for larger version

Name:	qspi clc register.jpg
Views:	2
Size:	22.7 KB
ID:	4036

    The first line gets the current password being used by the CPU.
    The second line opens temporary CPU access by this CPU to an ENDINIT (“End of initialization”) protected register
    The third line is writing 0 to the QSPI CLC (clock control register) which enables the clock at the peripheral and allow further access to other registers. If the CLC is not enabled for a peripheral you cannot write other registers in that peripheral.
    The forth line read back the value from the peripheral, What you need to know is the CPU has a write buffer, and a read from the same location will force the write to occur before the read.
    The fifth line closes that temporary CPU access to ENDINIT
    ?????? ?????? qspi clc register.jpg‎  

  8. #8
    Intermediate Intermediate KDN is on a distinguished road
    Join Date
    Oct 2017
    Posts
    44
    Points
    398.75
    Hi ,

    I think only enabling clock do't work, there must be some other setting also. Can you help me to understand that or can you share if you have any document on it.


    I have configure QSPI, but not able to see any output on data or clock bus either chip select working.

  9. #9
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    teoBits is on a distinguished road
    Join Date
    Nov 2019
    Posts
    21
    Points
    480
    Hello farazo,

    You can find a code example project for the QSPI module here: QSPI training code example.
    this example also comes with a tutorial, which can be found here: QSPI tutorial.

    If you are interested in other modules and you want to start programming for AURIX™, you can get the new Integrated Development Environment (IDE) here: AURIX™ Development Studio and get inspired by numerous trainings from here: AURIX™ Trainings.

    If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!

    Hope it helps,
    teoBits
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

Tags for this 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.