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 MibSPI chip select does not go low during transfer

Other Parts Discussed in Thread: HALCOGEN

Hello,

I have implemented the project [1]. Unfortunately the chip select does not go low during data transfer (see figure [2]). What can be the reason for this? Are there any solutions for this?

Many thanks in advance.

Kind regards

Patrick

Anhang: 

[1] Project

4_impl-int.zip

[2] Measurement

  • Your code looks ok for selecting CS_1 as the chip select:

          ui16TempReg = ((uint16)(~((uint16)0xFFU ^ (uint16)ui8CpSelect)) & (uint16)0x00FFU);

    But, why do you use the same buffer number as the start buffer of all the TGs (1~7)? Which TG is used for Data TX and RX in your application?

    if(ui8RegN == 0U)
    {
    ui16RegM = 0U;
    }
    else
    {
    ui16RegM = ui16Size;
    }
    if(ui8RegN < 8U)
    {
    mibspiREG1->TGCTRL[ui8RegN] = (uint32)((uint32)1U << 30U) /* oneshot */
    | (uint32)((uint32)0U << 29U) /* pcurrent reset */
    | (uint32)((uint32)TRG_ALWAYS << 20U) /* trigger event */
    | (uint32)((uint32)TRG_DISABLED << 16U) /* trigger source */
    | (uint32)((uint32)ui16RegM << 8U); /* start buffer */
    }
    else
    {
    mibspiREG1->TGCTRL[8U] = (uint32)(ui16RegM) << 8U;
    mibspiREG1->LTGPEND = (mibspiREG1->LTGPEND & 0xFFFF00FFU) | (uint32)((uint32)(((uint32)ui16RegM)-1U) << 8U);
    }
    }

    Did you try the MibSPI functions generated by HALCoGen? 

  • Hello, 

    Yes I tried it with Halcogen and found that on my TSM570LC4357 development kit (www.ti.com/.../TMDX570LC43HDK) no bit toggle is possible on CS0, CS1 and CS2. With CS3 a bit toggle is possible. With CS3 SPI messages can be sent.

    Possibly there is a HW error here. What do you think?

    Thank you very much.

    Kind regards

    Patrick

  • Hi Patrick,

    There is a DIP switch on HDK. The SPI1CS0, SPI1CS1 are routed to the expansion connection only when the USB_HOST and Ethernet on DIP switch are turned "OFF". 

  • Hello,

    thank you for the information. Where can I find this information?

    Thank you in advance.

    Kind regards

    Patrick

  • Hi Patrick,

    From the HDK schematics. After you switch off USB_HOST and Ethernet (DIP switch S2), are you able to pull MibSPI CS0/1/2 pulled LOW?