Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hello evrybody,
I'm trying to run the Httpget exemple provided for Tiva C Lunchpad "processors.wiki.ti.com/.../Tiva_C_Series_TM4C1294_LaunchPad".
The problem that when I try to debug on the CCS, he crasheddown and giv me this message on console "Change the macAddress variable to match your boards MAC sticker" this message is provided by the funtion EK_TM4C1294XL_initEMAC()
/* * ======== EK_TM4C1294XL_initEMAC ======== */ void EK_TM4C1294XL_initEMAC(void) { uint32_t ulUser0, ulUser1; /* Get the MAC address */ FlashUserGet(&ulUser0, &ulUser1); if ((ulUser0 != 0xffffffff) && (ulUser1 != 0xffffffff)) { System_printf("Using MAC address in flash\n"); /* * Convert the 24/24 split MAC address from NV ram into a 32/16 split MAC * address needed to program the hardware registers, then program the MAC * address into the Ethernet Controller registers. */ macAddress[0] = ((ulUser0 >> 0) & 0xff); macAddress[1] = ((ulUser0 >> 8) & 0xff); macAddress[2] = ((ulUser0 >> 16) & 0xff); macAddress[3] = ((ulUser1 >> 0) & 0xff); macAddress[4] = ((ulUser1 >> 8) & 0xff); macAddress[5] = ((ulUser1 >> 16) & 0xff); } else if (macAddress[0] == 0xff && macAddress[1] == 0xff && macAddress[2] == 0xff && macAddress[3] == 0xff && macAddress[4] == 0xff && macAddress[5] == 0xff) { System_abort("Change the macAddress variable to match your boards MAC sticker"); } GPIOPinConfigure(GPIO_PF0_EN0LED0); /* EK_TM4C1294XL_USR_D3 */ GPIOPinConfigure(GPIO_PF4_EN0LED1); /* EK_TM4C1294XL_USR_D4 */ GPIOPinTypeEthernetLED(GPIO_PORTF_BASE, GPIO_PIN_0 | GPIO_PIN_4); /* Once EMAC_init is called, EMAC_config cannot be changed */ EMAC_init(); }
Someone can tell me, why the get of the Mac address doesn't work well ?
Or what I did wrong ?
thanks,
BR