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

Not Able to Init. for Ethernet in LPC2378

Hello Friends, I am new to this group and just started learning about ARM7 controller.
I am Interfacing DP83848C with LPC278 for ethrernet, I took a Sample code "easyMAC" from NXP but that not working. it hanging in the bigning itself.
I am not able to Initialize Ethernet, can any help me out please

Naveen Cali

Parents
  • If you are going to use a watchdog to reset the processor in case of a hung application, then it is normally best to initialize the watchdog as early as possible. The only reason for not activating the watchdog early is if the startup code calls a library function that takes too long (for example decompressing constant data) that the watchdog may trig before you enter main(). Then you might have to take a chance and move the initialization into main(), where you get in full control of all program loops.

    If you are going to use a watchdog as a normal timer interrupt, then you should normally wait until you reach main() before initializing it. It is easier to create debug builds with different parts of the logic disabled if you wait until main(). Then you can even read a configuration area in flash/eeprom or listen to a serial port before you make the decision if your application should enter test mode with some features simulated or disabled.

Reply
  • If you are going to use a watchdog to reset the processor in case of a hung application, then it is normally best to initialize the watchdog as early as possible. The only reason for not activating the watchdog early is if the startup code calls a library function that takes too long (for example decompressing constant data) that the watchdog may trig before you enter main(). Then you might have to take a chance and move the initialization into main(), where you get in full control of all program loops.

    If you are going to use a watchdog as a normal timer interrupt, then you should normally wait until you reach main() before initializing it. It is easier to create debug builds with different parts of the logic disabled if you wait until main(). Then you can even read a configuration area in flash/eeprom or listen to a serial port before you make the decision if your application should enter test mode with some features simulated or disabled.

Children