AWR2544LOPEVM: SDK中的LWIP_UDP移植后运行报错

Part Number: AWR2544LOPEVM
Other Parts Discussed in Thread: AWR2544

1、oob例程删除源码中的hwa和enet

2、将SDK中的LWIP_UDP例程做了部分修改,能够独立实现所需部分功能。见图1。

3、将LWIP_UDP例程移到删减后的oob例程中,enet在syscfg配置与sdk中的配置一致。涉及的头文件,文件路径均添加,编译无错。但是CCSDEBUG下运行错误,见图2。

 

图1

[Cortex_R5_0] ==========================

  CPSW LWIP SIMPLE SOCKET

==========================

Link Status Changed. PHY: 0x0, state: up

EnetPhy_bindDriver: PHY 0: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK

 

PHY 0 is alive

Starting lwIP, local interface IP is dhcp-enabled

[LWIPIF_LWIP] NETIF INIT SUCCESS

Host MAC address-0 : 70:ff:76:1d:ec:f2

 

Enet IF UP Event. Local interface IP:192.168.1.200

[LWIPIF_LWIP] Enet has been started successfully

Waiting for network UP ...

Waiting for network UP ...

Waiting for network UP ...

Cpsw_handleLinkUp: Port 1: Link up: 1-Gbps Full-Duplex

 

MAC Port 1: link up

Network Link UP Event

Network is UP ...

 Connecting to: 192.168.1.210:8888

图2

[Cortex_R5_0] Configure HSI Clock source - DPLL_CORE_HSDIV0_CLKOUT0 (Disabled HSDIV).

**********************************************

Debug: Launching the MMW Demo on MSS

**********************************************

Debug: Launched the Initialization Task

******************************************

Debug: Launching the mmwaveLink

******************************************

BSS is powered up...

Debug: mmWave Control Initialization was successful

Debug: mmWave Control Synchronization was successful

Link Status Changed. PHY: 0x0, state: up

EnetPhy_bindDriver: PHY 0: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK

PHY 0 is alive

failed to create tcpip_thread mboxASSERT: 0.32613s: /home/lte_phy/Desktop/kalyan/mcupsdk_internal/jenkins/mcu_plus_sdk_awr2544_09_01_00_05/source/networking/lwip/lwip-stack/src/api/tcpip.c:tcpip_init:657: 0 failed !!!

移植后,能够驱动网口芯片,但是初始化tcpip出错。能帮忙看下什么问题。谢谢。

  • 问题解决

    cmd文件也需要同步修改,应用程序中缓存buf指定段时也需要稍作修改(不能超大小)。

    原通信由串口转成网口,能够正常工作。

    保留此贴,谢谢。