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.

[参考译文] TM4C1294NCPDT:LWIP 配置问题、sys_mutex_t 未定义

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1467682/tm4c1294ncpdt-lwip-configuration-issue-sys_mutex_t-is-undefined

器件型号:TM4C1294NCPDT

工具与软件:

我正在尝试配置 lwip 1.4.1。 我使用 enet_static-ip_lwip_tcpecho 服务器示例。  
我所做的更改是断言宏

#define NO SYS  1

#define LWIP_STATS 1.
#define tcp_stats (LWIP_TCP)
#define SYS_STATS 1.

#define TCPIP_THREAD_STACKSIZE      1024.


我在 sysarch.h 中加入了 stats.h

进行上述修改是为了消除一些编译错误。

但有一个待处理的错误是 sys.h 中未定义的 sys_mutex_t

该怎么办?

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

    您好!

    ]>#define no SYS  1.

    #define LWIP_STATS 1.
    #define tcp_stats (LWIP_TCP)
    #define SYS_STATS 1.

    #define TCPIP_THREAD_STACKSIZE      1024[/报价]

     我也这样做来取消对上述宏的注释、并且我看不到任何编译错误。  请注意、在上面的代码中、你有 #define NO SYS   1.不知道你是不是把它写错了或者什么。 首先、它应该是 NO_SYS、不应该是 SYS。  

      

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

    是的、这是一个拼写错误、我可以告诉您您所使用的 CCS 版本和编译器版本。

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

    抱歉、NO_SYS 必须为0、表示我们使用的是操作系统。
    对不起我的问题中的错误和误导你

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

    您好!

     有一个有关 FreeRTOS 的 lwIP 示例、其中 NO_SYS 设置为0。 请使用此示例作为起点。  

    用于 TM4C129x 微控制器的串口转以太网转换器

    这篇文章也很有帮助。

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/473789/ek-tm4c1294xl-s2e-example-code