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.
您好!
我正在使用 EZKIT-BF609 (µCLinux)处理 CC3100项目,我已经尝试了"SPI_DEBUG_TOOL"示例,它可以与 SPI_MODE_0配合使用。
我测试了示例"getting_started_with wlan_ap" 、它始终挂起到 sl_Start (0、0、0)函数中、我尝试删除"#define sl_platform_multi_threading"、但它不起作用。
请您对此问题有什么想法吗?
谢谢
您好、Gharbi、
遗憾的是、SPI_DEBUG_TOOL 并不是您的移植工作是否成功的完美标记。 检查您是否为 user.h 中的所有定义提供了函数(例如 sl_IfRegIntHdlr)。 您还应该通过在驱动程序代码中添加延迟来确保满足计时要求。 您可以在以下位置找到有关时序要求的指南: processors.wiki.ti.com/.../CC31xx_Host_Interface
此致、
Sarah
您好、Sarah、
感谢您的回复、 感谢您提供 有关时间要求的信息。
我能够解决这个问题、这是 SPI_READ 函数中缺少验证(当 length=0时)。 在 driver.c 中、有一个函数(_SlDrvRxHdrRead)在 len=0时调用 sl_IfRead
如果 ShiftIdx=0、则无需读取字节的其余部分。
现在我有另一个问题:异步事件处理程序函数不会被调用,应用程序(“tcp_Socket”)卡在 _SlNonOsMainLoopTask()
这个问题也是由 SPI 接口引起的、还是由 user.h 中缺少配置引起的?
PS:我定义了在 tcp_Socket 示例中调用的所有事件处理程序。
此致
Hamed