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.

C6678LE EVM - SPI not functional

HELP PLEASE
I have written simple SPI driver (as standalone app - no RTOS) using cslr_spi.h (chip support library) and evmc66x_spi.c (basic example for EVM). It configures SPI and make some simple writes to TX register. I also updated my c66xx.xml target file, in order to observe SPI registers and connected SPI pins to oscilo (test_ph connector). But all this work without single success. It appears as there is not allowed an access to SPI registers - registers are not changing (as driver modifies them) and the corresponding memory space as well (i suppose registers are memory maped according to datasheet p26 = base addr 0x20BF0000).

Simple task, but few days has gone, i am starting to be desperate :-( and using ugly words.

  • SPI is in LPSC (Local Power Sleep Controller) domain #3 which is SW controlled.  You need to enable the LPSC to use it. Reads and Writes to the registers of a peripheral in an LPSC that is not enabled will result in nothing being written and 0's being read.  The LPSC's are detailed in the Power Sleep Controller UG.  There's also CSL support for LPSCs.

    I hope this helps to mitigate your frustrations.

    Best Regards,
    Chad