Hi,
I am trying to get the ethernet module working on the xm4c129encpdt.
Has anyone had any issues with the ethernet controller on this device?
It negotiate ok, but then when it tries to get the address from the dhcp it fails.
Any ideas?
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.
Hi,
I am trying to get the ethernet module working on the xm4c129encpdt.
Has anyone had any issues with the ethernet controller on this device?
It negotiate ok, but then when it tries to get the address from the dhcp it fails.
Any ideas?
Jan Brandberg said:It negotiate ok,
First negotiate OK stay for negotiate speed connection and link up?
Which hardware are you using? It is OK?
DHCP server is IPV4, on same subnet and reachable too?
Is traffic from get DHCP request visible on the net?
Yes, it stays up so speed and activity led is ok.
I had to reset the processor and totally erase everything to be able to get into contact. Then I had to reprogram the MAC adress. Could it be something like this so I missed some data that needs to be programmed?
Jan Brandberg said:Then I had to reprogram the MAC adress. Could it be something like this so I missed some data that needs to be programmed?
From your writing too many details are missing, so we don't know your code is standard example or customized, we don't know about hardware, we don't know.....
Ethernet module can show issue, but without details we can be of no help, sorry no magic bowl is at our hand.
I don't know if you have any experience with this device since it's brand new, but it comes preprogrammed with eg. MAC address. When you do a total reset of the controller all this data disappears, and you have to reprogram the device. My question was IF if you can get this data somewhere....
I am using a TI standard code and the function enet_uip code from the TM129X EVA card, just disabled the display drivers so It should work out of the box, but it does not.....
But anyway, its a XM device and behaves differently...
Jan,
Only the parts on our evaluation boards have MAC addresses pre-programmed. You will have to provide a MAC address for the part on your custom board.
This forum thread suggests a couple of places to get them: http://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/t/45514.aspx
At first, if you wish better help please follow these rules:
http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/259930.aspx
Jan Brandberg said:I don't know if you have any experience with this device since it's brand new,
Me too, I had no on the field experience, I got samples at December 20 then I am waiting my board.
Jan Brandberg said:but it comes preprogrammed with eg. MAC address. When you do a total reset of the controller all this data disappears, and you have to reprogram the device. My question was IF if you can get this data somewhere....
MAC address if one was assigned can be a temporary one, mac address is loaded into register of MAC controller see page 1611 of data sheet. If you don't have a mac address temporarily see this
http://standards.ieee.org/develop/regauth/tut/macgrp.pdf
Use a mac address like 00:11:22:33:44:55 for test..
Mac Address is read from user register, see line 665 of enet_uip.c
//
// Read the MAC address from the user registers.
//
ROM_FlashUserGet(&ui32User0, &ui32User1);
if((ui32User0 == 0xffffffff) || (ui32User1 == 0xffffffff))
{
//
// We should never get here. This is an error if the MAC address has
// not been programmed into the device. Exit the program.
//
UpdateStatus("MAC Address Not Programmed!");
while(1)
{
}
}
You can instead of trap endless patch to assign an address...
user register are treated at page 603
Again I don't know what is on register of a new device, this can be answered soon from some TI guy, Dave it's your job ;)
Jan Brandberg said:I am using a TI standard code and the function enet_uip code from the TM129X EVA card, just disabled the display drivers so It should work out of the box, but it does not.....
IMHO it cannot work out of the box, ENCPDT variation is a 128TQFP the EVA is a 212 BGA pinout is different and need remap peripheral to correct pin.
Please install TIVA_pinmux and redo initialization as needed.
Dear Roberto,
Just to give you some background I have been working at TI as MSP FAE and been working with the 8051, HC11, HC12, Coldfire, PIC among others. I have been in the embedded marke since 1991.
I got my own PCB card before Christmas and have the card up and running now. It contains a CC1101, lcd display, Keyboard, RS485 and of course a RJ45 connector with integrated coil from Wurth
I found the problem yesterday, and it was that I did not comment out one of the lcd functions in the code.
So for your info the code from the EVA card works good!
I am using IAR Embedded Workbench with the I-Jet emulator and it works great!.
Good luck with your project
Rgds Jan
At first, if you wish better help please follow these rules:
http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/259930.aspx
Jan Brandberg said:I don't know if you have any experience with this device since it's brand new,
Me too, I had no on the field experience, I got samples at December 20 then I am waiting my board.
Jan Brandberg said:but it comes preprogrammed with eg. MAC address. When you do a total reset of the controller all this data disappears, and you have to reprogram the device. My question was IF if you can get this data somewhere....
MAC address if one was assigned can be a temporary one, mac address is loaded into register of MAC controller see page 1611 of data sheet. If you don't have a mac address temporarily see this
http://standards.ieee.org/develop/regauth/tut/macgrp.pdf
Use a mac address like 00:11:22:33:44:55 for test..
Mac Address is read from user register, see line 665 of enet_uip.c
//
// Read the MAC address from the user registers.
//
ROM_FlashUserGet(&ui32User0, &ui32User1);
if((ui32User0 == 0xffffffff) || (ui32User1 == 0xffffffff))
{
//
// We should never get here. This is an error if the MAC address has
// not been programmed into the device. Exit the program.
//
UpdateStatus("MAC Address Not Programmed!");
while(1)
{
}
}
You can instead of trap endless patch to assign an address...
user register are treated at page 603
Again I don't know what is on register of a new device, this can be answered soon from some TI guy, Dave it's your job ;)
Jan Brandberg said:I am using a TI standard code and the function enet_uip code from the TM129X EVA card, just disabled the display drivers so It should work out of the box, but it does not.....
IMHO it cannot work out of the box, ENCPDT variation is a 128TQFP the EVA is a 212 BGA pinout is different and need remap peripheral to correct pin.
Please install TIVA_pinmux and redo initialization as needed if not done.
Sorry for double quote and for delay, I got some network trouble, retry do that.
Jan Brandberg said:Just to give you some background I have been working at TI as MSP FAE and been working with the 8051, HC11, HC12, Coldfire, PIC among others. I have been in the embedded marke since 1991.
The processor you are mentioning are freescale (HC11 HC12 and coldfire was Motorola), PIC microchip.... I am working on microprocessor from about 1975, the first microcontroller I used was from Mostek I think may be 8751 than I moved to HC11, 68334 then some pic for small work then I got TI MSP, C2000, now I am exploring TIVA after Stellaris failure.
Jan Brandberg said:I found the problem yesterday, and it was that I did not comment out one of the lcd functions in the code.
So for your info the code from the EVA card works good!
I am happy for you, also thank for information it work as is, I was customizing code on DK card to port late. My board has an FPGA and some level translator to interface an old controller I am redesigning, this is an intermediate evaluation before the final step, I am late and TivaWare is better but different from old stellarisware. Tiva Pinmux is an invaluable tool to pinpoint configuration trouble.
Jan Brandberg said:Good luck with your project
Thanks a lot, good luck also to you too.
Stellaris John said:This forum thread suggests a couple of places to get them:
Hi John, a mac address for just 30 cent is interesting, the trouble is that it report Microchip as manufacturer, from this site some random mac address can be generated and if not present on network used for development.
http://www.macvendorlookup.com/
OUI report Microchip technology, I agree having a registration at IEEE is expensive but this is not the goal. Is also TI releasing some MAC used on DK that can be used on development? (Edit: from ' to ?)
From Miccrochip datasheet:
The 8-byte EUI-64TM node address value of the
11AA02E64 is stored in array locations 0xF8 through
0xFF, as shown in Figure 7-3. The first three bytes are
the Organizationally Unique Identifier (OUI) assigned
to Microchip by the IEEE Registration Authority. Cur-
rently, Microchip’s OUIs are 0x0004A3 and 0x001EC0,
though this will change as addresses are exhausted.
Roberto,
The parts on our DKs have TI MAC addresses pre-programmed, and can be used for your development.
You could talk to Microchip for full confirmation, but I assume that they would approve you using a MAC address with their OUI if it came from their ROM. They do guarantee that it is globally unique, but it would have to be okay with you that the MAC address OUI was Microchip's instead of yours.
Hi John, thank for answer, I prefer my own, I checked 01-23-45-xx-xx-xx is free till now, 00-11-22-xx-xx-xx is no more free.
Mac address is not a problem till some conflict are on same subnet and if one come is simple to read from a dead lan board or just copy from some odd device.
Unassigned
http://standards.ieee.org/cgi-bin/ouisearch?01-23-45
http://standards.ieee.org/cgi-bin/ouisearch?00-ff-ff
The one I was using now assigned..
http://standards.ieee.org/cgi-bin/ouisearch?00-11-22
Using a TI oui I think is not a good idea or the one assigned to user board are unique and never reused?
Roberto,
The TI MAC addresses assigned to the TI boards are unique. Otherwise our customers would have problems when using more than one on the same network.
HELLO,THIS IS NIDHI,
I m using tiva c series evaluation board .i want to create ethernet connection between my tiva evaluation board and personal computer.
i m using lwip to create ethernet network.Also i m using lwip program from examples folder that came with the evalaution kit.
i m stuck with the ip configuration,i m getting to the link established but no ip .do i hav to make some changes in the example program to get ip .
please do the needful.
Your request is on a thread where particular issue on custom board are. Your request is unreadable and related to standard hardware where appropriate thread solving known issue exist, try search before post then post in a readable/understandable in English language question.
nidhi pasari said:please do the needful.
Many of us are unpaid and nor paid by you so we cannot do nothing than pointing to a more kind request like
please can someone help me on this?