Tool/software: Code Composer Studio
I want to run GMAC_SW on TDA3xx.
I have CCS 8.3.1, I have 15x15 TDA3xEVM board and PROCESSOR_SDK_VISION_03_07_00_00
I am trying to run a test case internal_loopback_tda3xx_ipu1 from
c: \ PROCESSOR_SDK_VISION_03_07_00_00 \ ti_components \ networking \ nsp_gmacsw_4_16_01_01 \ packages \ ti \ ndk \ tda3xx \ examples_ipu1 \ internal_loopback \
I changed the GMACSW_Config * GMACSW_getConfig (void) function from the tda3xx_init.c file as follows:
GMACSW_Config *GMACSW_getConfig(void)
{
int i = 0;
uint8_t macAddr[6];
/* Get digital loopback starting config */
GMACSW_Config *pGMACSWConfig = GMACSW_CONFIG_getDLBConfig();
/* Set count of active MAC ports */
pGMACSWConfig->activeMACPortMask = PORT_MASK_MAC_BOTH;
/* Update default config with the correct MAC addresses */
for(i=0; i<MAC_NUM_PORTS; i++)
{
if ( (1U << i) & pGMACSWConfig->activeMACPortMask )
{
if (0==i)
{
/* Get the MAC Address from control module register space */
macAddr[5] = 0x12;
macAddr[4] = 0x12;
macAddr[3] = 0x12;
macAddr[2] = 0x12;
macAddr[1] = 0x12;
macAddr[0] = 0x12;
}
else
{
/* Get the MAC Address from control module register space */
macAddr[5] = 0x14;
macAddr[4] = 0x14;
macAddr[3] = 0x14;
macAddr[2] = 0x14;
macAddr[1] = 0x14;
macAddr[0] = 0x14;
}
printf("\nMAC Port %d Address:\n\t%02x-%02x-%02x-%02x-%02x-%02x\n", i,
macAddr[0], macAddr[1], macAddr[2],
macAddr[3], macAddr[4], macAddr[5]);
/* Copy the correct MAC address into the driver config */
memcpy( (void *)&(pGMACSWConfig->macInitCfg[i].macAddr[0]), (void *)&macAddr[0], 6 );
/*
* Adjust the PHY mask numbers for the Vayu EVM. The first MAC
* port is connected to a PHY with address = 2, the second MAC
* port is connected to a PHY with address = 3.
*/
pGMACSWConfig->macInitCfg[i].phyMask = 0x1 << i;
}
}
/* Return the config */
return pGMACSWConfig;
}
I got the following program log
[Cortex_M4_IPU1_C0]
MAC Port 0 Address:
12-12-12-12-12-12
MAC Port 1 Address:
14-14-14-14-14-14
GMACSW has been started successfully
Registration of the GMACSW Successful
Network Added: If-1: 192.168.1.200
Begin transmit task.
Begin receive task.
Packet 0: Raw socket send failed with some error.
EMSGSIZE: The size of the data being sent exceeds the MTU of the interface.internal_loopback.zip
What needs to be done for the test application to run?