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.

PROCESSOR-SDK-TDAX: BSP MCSPI - Receiving complete message as slave in interrupt mode

Part Number: PROCESSOR-SDK-TDAX

Hello,

I'm having some problems with grasping the bsp mcspi driver concept. My goal is to communicate with a different processor over spi where the TDA is the slave.

When I issue a buffer with a known size I get this amount of data back as is expected. My problem now is that i dont know the size of the message beforehand because this is the slave device. How can I read a single message with a variable size? When the message is bigger then my buffer it will get cut off, when it is smaller the reclaim function will not return until the number of bytes read are equal to the number of bytes requested. How do I get the number of bytes that are read while chip select was active?