Part Number: LP-AM243
On the following hardware/software, I have been unsuccessful in getting the LP-AM243 to receive an IP address from the DHCP server.
Could I have someone confirm if the PROC109A and LwIP examples from 9_00_00_35 SDK work?
*EDIT: See my follow-up post below. DHCP / Static LwIP apps don't work with 1Gbps connections; but works with 100Mbps Full-Duplex.
Other posts on E2E seems to show no issues with earlier SDK and E3 boards; so assumption is some software changes are the cause...?
DHCP Server: TP-Link Home Router
Confirmed the router assigns IP address to connected devices.
(i.e. plugged in a BeagleBoneBlack to the router with short LAN cable (same cable used in all tests).
It was assigned an IP from the DHCP server's pool automatically; confirmed on BBB with "ifconfig eth0" command)
"ping xxx.xxx.xxx.xxx also works to talk between PC / BBB"
LP-AM243 (PROC109A(001))
- mcu_plus_sdk_am243x_09_00_00_35 (Windows) installed to C:/ti/
- Followed online documentation to setup the EVM (using NULL Bootloader so no launch scripts / gel in CCS)
Starting NULL Bootloader ... DMSC Firmware Version 9.0.7--v09.00.07 (Kool Koala) DMSC Firmware revision 0x9 DMSC ABI revision 3.1 INFO: Bootloader_runCpu:155: CPU r5f1-0 is initialized to 800000000 Hz !!! INFO: Bootloader_runCpu:155: CPU r5f1-1 is initialized to 800000000 Hz !!! INFO: Bootloader_runCpu:155: CPU m4f0-0 is initialized to 400000000 Hz !!! INFO: Bootloader_loadSelfCpu:207: CPU r5f0-0 is initialized to 800000000 Hz !!! INFO: Bootloader_loadSelfCpu:207: CPU r5f0-1 is initialized to 800000000 Hz !!! INFO: Bootloader_runSelfCpu:217: All done, reseting self ...
- In CCS, imported/built the following:
...<SDK>/examples/networking/lwip/enet_cpsw_tcpserver for the LP-AM243 - Connected to R5_0_0, loaded the built binary, ran...
But the LP-AM243 was never assigned an IP address from the DHCP server.
I checked the TP-Link router settings page, but LP-AM243 was not detected/assigned IP.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2023.09.11 12:00:59 =~=~=~=~=~=~=~=~=~=~=~= Starting NULL Bootloader ... DMSC Firmware Version 9.0.7--v09.00.07 (Kool Koala) DMSC Firmware revision 0x9 DMSC ABI revision 3.1 INFO: Bootloader_runCpu:155: CPU r5f1-0 is initialized to 800000000 Hz !!! INFO: Bootloader_runCpu:155: CPU r5f1-1 is initialized to 800000000 Hz !!! INFO: Bootloader_runCpu:155: CPU m4f0-0 is initialized to 400000000 Hz !!! INFO: Bootloader_loadSelfCpu:207: CPU r5f0-0 is initialized to 800000000 Hz !!! INFO: Bootloader_loadSelfCpu:207: CPU r5f0-1 is initialized to 800000000 Hz !!! INFO: Bootloader_runSelfCpu:217: All done, reseting self ... ========================== CPSW LWIP TCP ECHO SERVER ========================== Enabling clocks! EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 2 Mdio_open: MDIO Manual_Mode enabled EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:03 <-> 'generic' : OK PHY 3 is alive PHY 15 is alive Starting lwIP, local interface IP is dhcp-enabled [LWIPIF_LWIP] NETIF INIT SUCCESS Host MAC address-0 : 1c:63:49:25:1a:09 [0]Enet IF UP Event. Local interface IP:0.0.0.0 [LWIPIF_LWIP] Enet has been started successfully [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... Cpsw_handleLinkUp: Port 1: Link up: 1-Gbps Full-Duplex MAC Port 1: link up [0]Network Link UP Event [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ... [0]Waiting for network UP ...
Static IP Tests
Next, I followed some E2E posts on modifying app_main.c to change from DHCP to static IP.
- Set BBB IP address to static (192.168.0.55)
- Set PC IP address to static (192.168.0.27)
- Set LP-AM243 address to static (192.168.0.10) (modified app_main.c)
BBB <---> LP-AM243
Connection works; I can ping LP-AM243 from BBB, and the "enet_cspw_tcpserver" code works.
(I used a simple python program with "socket" to send a message from BBB, and I get the TI message from LP-AM243 in response)
debian@beaglebone:~/projects/networking$ python pyclient.py Connected to Host! Sending data... Greetings from Texas Instruments!
BBB <---> PC
Connection works, I can ping the IP addresses from each other.
So I know the PC IP/Netmask/Gateway settings allow communication.
PC <---> LP-AM243
Connection doesn't work..."ping" command can't access the LP-AM243...