This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MAC address getting of uVision3's EasyWeb demo for phytec LPC229x

It is necessary to have changed MAC address getting lines of "c:\Keil\ARM\RV30\Boards\Phytec\LPC229x\EasyWEB\LAN91C111.c" to operate correctly.

Original lines:

  *(unsigned short *)&MyMAC[0] = LREG (unsigned short, IAR0);
  *(unsigned short *)&MyMAC[2] = LREG (unsigned short, IAR2);
  *(unsigned short *)&MyMAC[4] = LREG (unsigned short, IAR4);


Modified lines:

  for (i = 0; i < 6; i++) {
    MyMAC[i] = LREG (unsigned char, IAR0 + i);
  }


With original code, MAC address of packet transferred from phyCORE LPC2294 board is 50:c2:6e:24:3b:00. But correct address is 00:50:c2:6e:24:3b.
It seems modified code works fine.

Hope that helps,