嗨,艾迪,
看起来描述符没有被正确链接。
在函数dMAys*rxl配置()中,修改以下内容,
cydmatdsetconfiguration(s_rxtd [ 0u ],[ 1,s_rxtd 1u ],td_termout0_en | td_inc_dst_adr);
CydMatdSt配置(SyrxTD[1u],1,SyrxTD[0u],0);
同时,spis_rx_status_mask_reg = 1(ISR)和spis_enableint()(主)是不必要的。
如果“中断接收FIFO不空”是SPI配置窗口激活,它会自动照顾的中断使能。
谢谢,Shanmathi
以上来自于百度翻译
以下为原文
Hi Eddi,
It looks like the descriptors are not chained properly.
In function Dma_S_Rx_Configuration(), modify the following,
CyDmaTdSetConfiguration(S_RxTD[0u], 1, S_RxTD[1u] , TD_TERMOUT0_EN|TD_INC_DST_ADR);
CyDmaTdSetConfiguration(S_RxTD[1u], 1, S_RxTD[0u], 0);
Also, SPIS_RX_STATUS_MASK_REG=1 (in ISR) and SPIS_EnableInt() (in main) are not necessary.
If "Interrupt on Rx FIFO not empty" is enabled in the SPI configuration window, it will automatically take care of the interrupt enable.
Thanks,
Shanmathi
嗨,艾迪,
看起来描述符没有被正确链接。
在函数dMAys*rxl配置()中,修改以下内容,
cydmatdsetconfiguration(s_rxtd [ 0u ],[ 1,s_rxtd 1u ],td_termout0_en | td_inc_dst_adr);
CydMatdSt配置(SyrxTD[1u],1,SyrxTD[0u],0);
同时,spis_rx_status_mask_reg = 1(ISR)和spis_enableint()(主)是不必要的。
如果“中断接收FIFO不空”是SPI配置窗口激活,它会自动照顾的中断使能。
谢谢,Shanmathi
以上来自于百度翻译
以下为原文
Hi Eddi,
It looks like the descriptors are not chained properly.
In function Dma_S_Rx_Configuration(), modify the following,
CyDmaTdSetConfiguration(S_RxTD[0u], 1, S_RxTD[1u] , TD_TERMOUT0_EN|TD_INC_DST_ADR);
CyDmaTdSetConfiguration(S_RxTD[1u], 1, S_RxTD[0u], 0);
Also, SPIS_RX_STATUS_MASK_REG=1 (in ISR) and SPIS_EnableInt() (in main) are not necessary.
If "Interrupt on Rx FIFO not empty" is enabled in the SPI configuration window, it will automatically take care of the interrupt enable.
Thanks,
Shanmathi
举报