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.

[参考译文] RTOS/CC2640:读取大量数据时 SPI 被挂起。

Guru**** 2594300 points
Other Parts Discussed in Thread: CC2640, BLE-STACK

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/603853/rtos-cc2640-spi-is-getting-hanged-when-reading-large-amounts-of-data

器件型号:CC2640
Thread 中讨论的其他器件: BLE-STACK

工具/软件:TI-RTOS

您好!

我正在从 SPI 从器件(CC2640是 SPI 主器件)读取1020个字节的数据、但除此之外、此 SPI 事务将挂起、并且由于此看门狗正在触发热复位。

设置: IAR 7.40.3、BLE 栈2.1、TIRTOS 2.13.00.06。

我将在阻塞模式下使用 SPI。

/*将 SPI 配置为主接口,1MHz 比特率*/
SPI_Params_init (&spiParams);
spiParams.bitrate = SPI_Bitrate;
spiParams.frameFormat = SPI_Format;
spiParams.mode = SPI_MASTER;
spiParams.transferMode = SPI_MODE_BLOCKING;

/*尝试打开 SPI。 //
handle.spi_handle = spi_open (((uint32_t) Board_SPI0、&spiParams); 

对于片选、我不使用 SPI_Control、而是使用普通的 PIN_setconfig 来使每个 SPI 事务的该值为低电平。

SPI 逻辑分析仪输出确认 SPI 事务在读取16个字节后挂起、当时它应该读取1020个字节。

您能帮我解决一些可能发生这种情况的问题吗?