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.

TMS320C6748: dma和cache冲突问题

Part Number: TMS320C6748


    大家好  平台是c6748   dma+spi的方式实现数据传输,目前遇到的问题是如果将cache关掉,数据正常,如果打开cache,数据异常,用示波器测量过,打开cache的情况下数据是异常的。

Cache_inv((xdc_Ptr)&rx_data[0], SPI_RX_TX_WIDTH, Cache_Type_ALL, 1);

NRF24L01_DMA_Trans_link(&pBuf[0], len, &reg, rx_data,rx_len);

Cache_wb((xdc_Ptr)&tx_data[0], SPI_RX_TX_WIDTH, Cache_Type_ALL, 1);

spi和dma的配置代码  没有粘贴  

这是我在打开cache的情况下,spi发送和接收时做的操作,用Cache_inv、Cache_wb屏蔽掉cache的影响,但实际和我预期不同。

想请问ti的工程师,我使用的方法是否正确,是否有方法解决我遇到的问题。

谢谢