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.

MCU-PLUS-SDK-AM243X: Update to SDK 08.05/08.04 MCSPI-driver-problems

Part Number: MCU-PLUS-SDK-AM243X

Hello,

so we updated to the new SDK 08.05. And for us also the mcspi-driver-implementation changed. I guess it was also the case with 08.04. but last time we had no time to investigate since it already didn't work anymore at this time.

So at startup we have a small spi-command with only 4 bytes sent out. With the update it did not work anymore. We configured mcspi to interrupt mode and thus the first interrupt in masterIsr came up but none followed. So a transmit hung up forever since there was never a return of the function.

I then noticed that the txFifoTrigLvl and rxFifoTrigLvl are defaulted to 16 and changed their location to the channel-config. Also there was a whole part removed from MCSPI_setChConfig, which was used for configuring the thresholds:

I needed to put this part back in to get everything to work.

Can you confirm this bug?

Best regards

Felix

  • Hi Felix,

    First of all, does the same failure happens for the polling mode? Can you share the code you used to create the MCSPI interrupt mode failure case, so that we can establish the failure case before I report it to the SW team.

    Thanks!

    Ming

  • Hey Ming, as we just discussed in the meeting, the configuration for the fifos changed to the channel and to SysCfg. Thus I would not consider this to be a bug just a different use-behaviour. So we can close this one. We will anyway keep the automatic calculation inside.

    Best regards

    Felix