I want to create a basic Ethernet application on Am335x ICEv2.1 since TI-RTOS for Am335x is not available. I figured this would be a matter of removing EIP calls from the ethernetip_adapter IDK example, and then I would be able to ping the board. However, I'm stuck on board configuration issues.
Here's what I've done so far:
1. To work around the onboard emulator not stopping at main(), added JTAG header and added/deleted resistors so external emulator can be used. External emulator stops at main() more regularly than onboard emulator, although not all of the time.
2. Connected Ethernet cable to Ethernet 0 port
3. Connected RJ45 jumpers between pins 1&2 for CPSW
4. Set Sysboot jumper to NOR Flash
5. Moved ethernip_ip project to new directory
6. Redefined IA_SDK_HOME and CG_BIOS_ROOT
7. Added PortableTimer to Sys/Bios to fix link errors caused by missing 'ti_sysbios_hal_Timer_xxx' functions.
8. Moved macro USE_CPSW_DRIVER from undefined to defined in compiler options
9. Redefined am335x_board_type from AM335X_BOARD_TYPE_ICE to AM335X_BOARD_TYPE_ICE_V2 in \sdk\platform\am335x\src\plat_utils.c.
Search for AM335X_BOARD_TYPE_ICE_V2 in *.h throughout IDK shows two different definitions for AM335X_BOARD_TYPE_ICE_V2:
#define AM335x_BOARD_TYPE_ICE = 3 in sdk\platform\am335x\include\plat_utils.h
#define AM335x_BOARD_TYPE_ICE = 2 in sdk\tools\flashing tools\NOR_Flash\norFlash.h.
Rebuilt platform library and verified runtime value of 3.
10. Set IP address, subnet, gateway in .cfg
11. Removed call to EIPMain() in main
12. Rebuilt project, loaded with external emulator, waited for stop at main(), hit Resume
13. Console in CCS shows '[CortxA8] Network Added: If-1:192.168.3.253'
14. UART output is garbled as if baud rate is incorrect, values other than 115.2n81 are worse
15. Wireshark shows PC sends ARP request when code is run, but board doesn't respond
Versions:
CCS 6.0.0.00190, IDK 1.1.0.4, SysBios 6.40.01.15, NDK 2.23.01.01, XDCtools 3.20.02.44, TMDXICE3359_v2_1A.gel
Question:
Step 14 seems to indicate a basic clock issue. What am I doing wrong?