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.

AM263X-MCAL-SDK: AM2634 – How to determine number of valid received bytes in DMA RX buffer?

Part Number: AM263X-MCAL-SDK
Other Parts Discussed in Thread: AM2634

Hi Team,

I am working on AM2634 using MCU+ SDK (mcu_plus_sdk_am263x_09_02_00_55)

How to find the number of DMA RX bytes which has the data?

How can I determine how many bytes were actually received by DMA in the RX buffer?

For example:

  • I configured DMA RX transfer for 256 bytes.

  • But sender transmitted only 40 bytes.

  • How do I know that only 40 bytes were received?

Is there:

  • Any DMA register to check remaining transfer count?

  • Any driver API to get actual received length?

  • Any callback parameter that provides received byte count?

Currently I only receive transfer complete interrupt for full length.

Please suggest the correct way to detect actual RX data length in DMA mode.

Thanks,
Swati