Tool/software: WEBENCH® Design Tools
Hello,
I need to find out my device (TM4C1294NCPDT) mac id programmatically. There is any way to find out that one?
Also, need to find out wifi booster pack mac id.
please help us.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: WEBENCH® Design Tools
Hello,
I need to find out my device (TM4C1294NCPDT) mac id programmatically. There is any way to find out that one?
Also, need to find out wifi booster pack mac id.
please help us.
Hi,
Do you have a LaunchPad board or do you have your own custom board?
If you use the LaunchPad board then the MAC address is preprogrammed. You can also find the MAC address sticker on the board. For the LaunchPad the MAC address is allocated from the pool of MAC Address allocated to TI. For a custom design the MAC address must come from the pool of allocated MAC address to the organization/company.
Hello Siva,
You may want to use the following code, taken from the TIVA libs:
ROM_FlashUserGet(&ui32User0, &ui32User1);
if((ui32User0 == 0xffffffff) || (ui32User1 == 0xffffffff))
{
//
// MAC address has not been programmed, use default.
//
g_sMACAddr.addr[0] = 0x00;
g_sMACAddr.addr[1] = 0x1a;
g_sMACAddr.addr[2] = 0xb6;
g_sMACAddr.addr[3] = 0x00;
g_sMACAddr.addr[4] = 0x64;
g_sMACAddr.addr[5] = 0x00;
}
else
{
g_sMACAddr.addr[0] = ui32User0 & 0xff;
g_sMACAddr.addr[1] = (ui32User0 >> 8) & 0xff;
g_sMACAddr.addr[2] = (ui32User0 >> 16) & 0xff;
g_sMACAddr.addr[3] = ui32User1 & 0xff;
g_sMACAddr.addr[4] = (ui32User1 >> 8) & 0xff;
g_sMACAddr.addr[5] = (ui32User1 >> 16) & 0xff;
}
This is a function already in module's ROM that reads the contents of the bootcfg register. You would enjoy reading the TIVA Peripheral Drivers Library
for more detailed info and of course the BOOTCFG related pages from the main manual of TM4C1294NCPDT .
Have fun,
John