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.

AM6442: MCSPI only works half the time, only works on 2nd, 4th, 6th.. remote proc start

Part Number: AM6442


Tool/software:

Trying to develop an MCSPI driver to run on the R5 core. I am able to communicate with my device  half the time (exactly), but get issues when booting from remoteproc.

The setup is  A53 running linux, R5 running freertos. A53 loads elf with remoteproc, which boots and initilized the spi. The first remoteproc start, i only see 0's on the spi line, but if i stop the remote proc and restart, the second i see valid data, if i stop again, i see only zeros when i run it a third time and so on:

First remote proc start: SPI data all 0's

Second remote proc start: SPI data is good

Third remote proc: SPI data is all 0';s

Fourth: SPI data is good

and so on.

Any ideas where to look for this? i assume its a driver config issue.

  • The first remoteproc start, i only see 0's on the spi line,

    Are you saying you are getting a SPI clock signal (as expected, when a transaction is triggered), but the output data line stays low?

    If so this would mean your R5 code is generally running, and you should be able to attach JTAG and use CCS to debug/investigate further why the data that's output is zero. Perhaps due to some code/initialization issue the SPI module is being fed zero bytes?

    Regards, Andreas