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.

Booting from SD card the SPI is not working, rest of program is working

Hello

I have made a program using starterware libraries which read samples from an external ADC using SPI into a buffer. When the buffer is full, the samples are transmitted using lwip over ethernet to host program.

If i program the processor with CCS and run the program everything works fine. However, if I put the program on the sd-card (using the binary with _ti extension) the SPI does not appear to be running. The BB is able to start lwip and connect to my host program (running on pc) I can also initiate the ADC reading process, and the buffer is filled with zeros. Furthermore, transmitting the values in the buffer to the host is also working.

So: The program is running from the sd-card exactly just fine, however the SPI is not running (at least not the SPI-clock)

Is there anybody who has any hints as to what could be causing this?

  • A few ideas:

    1. Are you running Debug or Release version on your SD-card? When Release version is the one that is not working please try again with Debug - some of the optimisations used for Release-build damage code and leave parts of the hardware functions unusable.

    2. Are you using BB or BBB? In case it is an BeagleBone Black: please apply the patch that is available on download page for StarterWare

  • Hi qxc

    I tried running both debug and release versions from CCS and SD-card with the same result. Everything works fine, except SPI is not running when booting from SD card.

    I am using BB (not black)

    I will try a different BB board and also shift to using SPI 1 instead of SPI 0 and see if the error is still there.