Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: AM2434
Tool/software:
Hi Experts,
With SDK10, AM2434ALV EVM Board. My scenario is as follows:
The EVM MCSPI as spi slave(peripheral) communicate with another module. The slave does know the length from the host each time, but the slave needs to synchronously send specific data (such as 0xAA 0xAA ... 0xAA) when the host send request data. So I used a GPIO to monitor the status of host CS Pin status, and presend a maximum length of 0xAA through MCSPI_transfer() before the host transmitting (MCSPI mode: interrupt and callback). When the GPIO/CS Pin rising edge interrupt is triggered, it is considered that completed the transmission, and then the slave parsed all received data and response. My questions:
1. How do I know how many bytes have actually been received?
2. Whether the data within txfifo that not sent out need to be manually cleared to avoid affecting the subsequent transmission of valid data? And how to clear if need.

