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.

[参考译文] CCS/TM4C1294NCPDT:使用 Tiva TM4C1294NCPDTI 板上的以太网电缆进行简单的两板通信。

Guru**** 2560390 points
Other Parts Discussed in Thread: EK-TM4C1294XL

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/930785/ccs-tm4c1294ncpdt-simple-two-board-communication-using-ethernet-cable-on-tiva-tm4c1294ncpdti-boards

器件型号:TM4C1294NCPDT
Thread 中讨论的其他器件: EK-TM4C1294XL

工具/软件:Code Composer Studio

       我有两个 tm4c1294ncppdt launchpad 电路板、它们都通过以太网电缆连接、以便通过 USB 电缆进行通信和上电   

其中一个板是主板,另一个是从板。 当我按下主板上的按钮、然后通过以太网在从板上的 LED 闪烁时、我就需要这样做


请建议
1如何在编程中定义主从 IP 地址?
如何编写简单的通信代码?
我正在使用 CCS paltform 编写 c 代码,请建议如何操作。

我在其中看到 ethe_io 示例、但我不想使用任何 html、java、服务器类型的网页、我只想进行简单的通信、如 SPI 通信

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

    您好!

     我们没有您的应用所描述的示例。  

     我建议您从中的 enet_tcpecho_server 示例开始 /examples/boards/ek-tm4c1294xl. 此代码演示了服务器端。 TivaWare 库中没有客户端示例。 但是、您可以查看此帖子中的客户端示例。  https://e2e.ti.com/support/tools/ccs/f/81/t/924776

     服务器和从机都将通过 DHCP 获取其 IP 地址。