Part Number:CC3235SF
TI工程师你们好:
我在CCS中基于CC3235SF搭建freeRTOS,其中SPI部分需要配置DMA来释放MCU计算资源。
但是xx.syscfg中似乎不能直接配置出SPI+DMA的相关API,同时syscfg中对于DMA的操作提示:There is no user API for this module. See Driver configurations reference for more information。与此同时,超链接Driver configurations reference 并没有在CC32xx_sdk中存在,CC32xx_sdk中也没有SPI+DMA的demo。
请问我可以通过哪些途径获取到相关资料或者例程,以便快速搭建出功能效果。
Kevin Qiu1:
SPI例程自带DMA C:\ti\simplelink_cc32xx_sdk_5_30_00_08\examples\rtos\CC3235SF_LAUNCHXL\drivers\spimaster
关于SPI DMA的说明查看:https://dev.ti.com/tirex/content/simplelink_cc32xx_sdk_5_30_00_08/docs/drivers/doxygen/html/_s_p_i_c_c32_x_x_d_m_a_8h.html
,
lu lu:
Kevin Qiu1你好,非常感谢提供的帮助。
我在程序中,设定transaction.count数值大于minDmaTransferSize的情况下,程序运行被卡死。反之,则可以正常运行并读取到SPI数据。
syscfg中我已设置成和例程一致,请问还有哪些位置可能会引起系统宕机呢?
非常感谢 !
,
Kevin Qiu1:
你使用的SDK版本是多少?
看起来是类似问题:https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/632476/ccs-simplelink-cc3220-sdk-v1-50-00-06-spi_transfer-in-blocking-slave-mode-rx-only-always-returns-no-valid-data-if-dma-is-used-internally
升级到最新的SDK试一下(SDK5.30)