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.

[参考译文] 编译器:get_time sl_bind 错误

Guru**** 3040200 points

Other Parts Discussed in Thread: CC3100

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/886746/compiler-get_time-sl_bind-error

主题中讨论的其他器件:CC3100

工具/软件:TI C/C++编译器

对于 cc3100获取时间用例、sl_bind 函数的返回值为- 22。 SPI 发送的数据如下:

=================== len:4 SPI_Write[0]:21=================

=================== len:4 SPI_Write[1]:43=================

=================== len:4 SPI_Write[2]:34=================

=================== len:4 SPI_Write[3]:12=================

=================== len:4 SPI_Write[0]:4===========

=================== len:4 SPI_Write[1]:94=================

=================== len:4 spi_Write[2]:c============

=================== len:4 SPI_Write[3]:0=================

=================== len:12 SPI_Write[0]:0=================

=================== len:12 SPI_Write[1]:0=================

=================== len:12 SPI_Write[2]:0=================

=================== len:12 SPI_Write[3]:20=================

=================== len:12 SPI_Write[4]:0=================

=================== len:12 SPI_Write[5]:0============

=================== len:12 SPI_Write[6]:0=================

=================== len:12 SPI_Write[7]:0=================

=================== len:12 SPI_Write[8]:0=================

=================== len:12 SPI_Write[9]:0=================

=================== len:12 SPI_Write[10]:0============

=================== len:12 SPI_Write[11]:0============

=================== len:4 SPI_Write[0]:65=================

=================== len:4 SPI_Write[1]:87=================

=================== len:4 SPI_Write[2]:78===========

=================== len:4 SPI_Write[3]:56=================

我比较了 MSP430 + cc3100的正常打印时间、SPI 发送的数据是一致的。 当我将其移植到 MCU 时、sl_bind 无法返回。

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

    您好!

    您尝试绑定到哪个端口? 您是否已确保您没有尝试绑定到已在使用的端口? 这通常是 sl_Bind()上错误-22的最常见原因。

    此致、

    Michael