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.

[参考译文] RM57L843:IwIP (TCP/IP)以外的以太网示例代码

Guru**** 2549080 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1012143/rm57l843-ethernet-sample-codes-other-than-iwip-tcp-ip

器件型号:RM57L843

您好!

我的客户正在寻找以太网示例代码。
我在原始线程(上面的链接)中得到了 IwIP 示例。
客户要求使用其他协议、如 UDP 等

谢谢、此致、
田志郎一郎

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

    您好!

    以太网引导加载程序使用 UDP 协议进行数据传输。 但引导加载程序也基于 LWIP 堆栈。

    https://git.ti.com/cgit/hercules_examples/hercules_examples/tree/Application/Hercules_Ethernet_Bootloader

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

    您好 QJ、

    感谢您的快速回复。
    客户已检查 URL、但无法找到哪一个代码是 UDP 协议。
    您可以指定文件吗?

    谢谢、此致、
    田志郎一郎

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

    UDP API 在 tftp.c 的 tFTPinit()中被调用:

    TFTPInit (tTFPT 请求  pfnRequest)
        struct udp_pcb * udpPcb;
        //
        // 记住  应用程序 的通知 回调。
        //
        g_pfnRequest = pfnRequest;

        //
        // 开始 侦听  传入 的 TFTP 请求。
        //
        UdpPcb =  udp_new()
        udp_bind (UdpPcb、 IP_ADDR_ANY、 TFTP_PORT);
        UDP_recv (UdpPcb、 TFPRecv、 NULL);
        while (!image_download);