atmega32+ENC28J60 freezing problem

Discussion in 'Embedded Systems and Microcontrollers' started by ecworks, May 3, 2016.

  1. ecworks

    Thread Starter New Member

    May 3, 2016
    11
    0
    Hello friends...
    i am doing a project with atmega32 and Ethernet module ENC28J60 http://www.amazon.in/ENC28J60-Netwo...62252345&sr=8-3-fkmr0&keywords=ENC28J60+14/23
    On starting it works fine .when i checked it show
    [​IMG]
    but after some time connection will lost and it shows
    [​IMG]
    when i reset the micro controller it start to work again.so i thought the program may freeze in the micro controller, but on freeze time i checked the micro controller with UART communication , it work fine. only problem with etherner communication...i don't know why fix the problem when i reset my micro controller .. please give me some suggestions and help... if my explanation is not clear then ask your doubts please... i hope your valuable suggestions as early as possible.. thank you....
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    Assuming atmega32 is working fine. I would guess that ethernet module overheats. Does ethernet module get really hot?
     
  3. ecworks

    Thread Starter New Member

    May 3, 2016
    11
    0
    thanks for your reply sir....
    yes its really hot .. but why it fixed the problem after i reset micro controller.. what change happen in Ethernet module when i reset micro controller?
     
  4. ecworks

    Thread Starter New Member

    May 3, 2016
    11
    0
    thanks for your reply sir....
    yes its really hot .. but why it fixed the problem after i reset micro controller.. what change happen in Ethernet module when i reset micro controller?
     
  5. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    Good question.

    In your code, do you have a set of commands to initialize the ethernet module?
     
  6. mcgyvr

    AAC Fanatic!

    Oct 15, 2009
    4,771
    971
    I've had the same problem with those cheap enc ethernet modules..
    Never could figure out the cause.. Could be overheating I guess..
    Try a fan blowing on it and see if that stops the lost connection.
    Can you ping the 192.168.10.218 device with another computer when the enc28j60 cannot?

    I just gave up and changed to an ESP8266 wifi micro and thats working just fine.
     
  7. BR-549

    Well-Known Member

    Sep 22, 2013
    2,004
    394
    Does the address change when it happens?
     
  8. BR-549

    Well-Known Member

    Sep 22, 2013
    2,004
    394
    Yeah, on that sec photo....it says you're pinging one address, but the scroll shows another.

    What's that all about?

    I know nothing of this.
     
  9. ecworks

    Thread Starter New Member

    May 3, 2016
    11
    0
    hello sir, thanks for your reply...
    here 192.168.10.218 is the ip address of the avr micro controller and 192.168.10.165 is the ip address of the server
     
Loading...