SLUUDO2 September 2026 AM2611 , AM2612 , AM2612-Q1 , AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
Debugging CPSW Ethernet connectivity problems requires a systematic approach that combines hardware validation with deep software analysis. Even if the hardware looks perfectly fine on an oscilloscope, software errors in the ENET-LLD driver stack cause most connectivity failures. This section provides practical techniques for debugging the AM261x CPSW software initialization sequence, data flow, and statistics collection using the MCU+ SDK ENET-LLD APIs. The examples reference actual function names and structures from the SDK to help engineers quickly locate and diagnose issues in their applications.
The AM261x MCU+ SDK uses SYSCFG to generate initialization code that properly sequences the CPSW peripheral bring-up. Understanding this flow is critical for debugging initialization failures. The SYSCFG tool generates several key files:
These files contain the complete peripheral configuration for CPSW. The driver initialization begins with a call to the EnetApp_driverInit() function, this function invokes the Enet_init() function from the ENET-LLD core library. The Enet_init() function initializes the ENET utilities configuration structure and must complete successfully before any peripheral operations. Following driver initialization, the application calls the EnetApp_driverOpen() function, this is the primary entry point for opening the CPSW peripheral instance. The EnetApp_driverOpen() function first retrieves the CPSW configuration structure through the EnetApp_getCpswCfg() function and EnetApp_getCpswCfg() returns a pointer to the gEnetCpswCfg configuration, a pre-configured structure containing: