enet_uip这个例程里面
读本机MAC地址放到数组里面,,这我怎么找都没找到user register0,1啥时候存储的MAC地址啊,,,
//// Read the MAC address from the user registers.//ROM_FlashUserGet(&ui32User0, &ui32User1);//// 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.//sTempAddr.addr[0] = ((ui32User0 >> 0) & 0xff);sTempAddr.addr[1] = ((ui32User0 >> 8) & 0xff);sTempAddr.addr[2] = ((ui32User0 >> 16) & 0xff);sTempAddr.addr[3] = ((ui32User1 >> 0) & 0xff);sTempAddr.addr[4] = ((ui32User1 >> 8) & 0xff);sTempAddr.addr[5] = ((ui32User1 >> 16) & 0xff);
xyz549040622:
OM_FlashUserGet(&ui32User0, &ui32User1)
这条语句,你看看这个ui32User0中的结构体成员
user5345664:
回复 Michael Sun:
我用的是tm4c1294enet_lwip 例程读mac地址几块芯片都是0xffffffff)用 MAP_FlashUserSet(ui32User0, ui32User1);写user register不掉电可以,一掉电又都是0xffffffff 请问有什么方法能使user register掉电保存或能读到芯片有效的mac,自己写的话怕会有冲突