This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: FTUTCR_ST SPNA145

Part Number: TMS570LC4357

Hi,

I am trying to get through the SPAN145 to get a working FTU on the TMS570LC4357 Rev. B.
Most of the needed source code can be found included the SPAN145 document.

What I was not able to find is the register description for the FTUTCR_ST  used on page 6.

In this thread https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/492685 QJ Wang uploaded some example .c files.

Can the included register definition header files #include "fray.h" #include "ftu.h" be found in another package?

I possible please upload a compressed archive of the complete test project for the FTU. This will help a lot to get the FTU doing it work.

Thanks a lot!

Denis

  • Hello Dennis,

    The FTUTCR is the transfer configuration RAM (TCR). The TCR consists of 128 entries, each 19 bit wide. The TCR is ECC protected.

    The description is on 26.3.1.25 of TRM. I will find the header files and write a similar header file for you
  • Hello QJ,

    I found this description of the TCR in the reference manuals. What is not clear to me is the how the struct is build, because the application note is writing to TCR_Ptr->FTUTCR_ST[channel].TCR_UN.TCR_UL = value;
    So I expect FTUTCR_ST to provide different unions to access data in the TCR.

    Thanks in advance,
    Denis
  • Hello Denis,

    It might like this:

    /*Transfer Unit RAM*/
    typedef volatile struct
    {
    struct
    {
    union
    {
    unsigned long TCR_UL; /* 0x0 - 0x1FC */
    struct
    {
    unsigned int : 13;
    unsigned int STXR_B1 : 1;
    unsigned int THTSM_B1 : 1;
    unsigned int TPTSM_B1 : 1;
    unsigned int THTCC_B1 : 1;
    unsigned int TPTCC_B1 : 1;
    unsigned int TSO_B14 : 14;
    }TCR_ST ;
    } TCR_UN;
    } FTUTCR_ST[128];
    } FTURAM_ST;