How can i change the MAC address in the ethmac.h

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can i change the MAC address in the ethmac.h

435 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuhan on Mon Nov 04 00:19:13 MST 2013
Hi Sir/Madam ,

   I am working on the easyweb example code . I have change my IP address accordingly to the ethernet board setting in tcpip.h . but i still cant load the webpage in my browser . I initially did not change the mac address in ethmac.h  and there is no compiler error . Now i have configured that MAC address in the ethmac.h  i face the following error .
../src/ethmac.c: In function 'Init_EthMAC':
../src/ethmac.c:208: error: 'BB' undeclared (first use in this function)
../src/ethmac.c:208: error: (Each undeclared identifier is reported only once
../src/ethmac.c:208: error: for each function it appears in.)
../src/ethmac.c:208: error: 'E7' undeclared (first use in this function)
Can you explain if i should use hexadecimal format when i configure the MAC. Is it possible to obtain a sample of the configuration .
0 Kudos
3 Replies

409 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Mon Nov 04 08:21:12 MST 2013
Hi Kuhan,
First of all please try to ping the board from your PC. Post the reply of the ping on this forum.
0 Kudos

409 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuhan on Mon Nov 04 02:28:53 MST 2013
Hi Martin ,

  The error doesnt exist after i have changed all the mac address to 0x format . But i still cant launch the website for the easy web . Problem loading page . Any possible ways to solve this ?
0 Kudos

409 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Mon Nov 04 00:26:32 MST 2013
Hello,
for the compilation error: please show us your file ethmac.c especially the lines around line 208.
Have you used "0x" before each hex number, e.g. 0xBB, 0xE7
Best regards,
Martin
0 Kudos