View previous topic :: View next topic |
Author |
Message |
dh4fah
Joined: 31 Jul 2005 Posts: 20 Location: Germany
|
Posted: Sun Jul 31, 2005 7:57 am Post subject: cksel = 0000 => how to reset? |
|
|
Hello,
I was testing with my EasyTCP/IP for more than 2 days now, identifying and programming worked fine, but I could not ping the board, so tcpip did not work. After searching the forum I realized, that fusebits for JTAG (disable) and external clock must be set. after I set CKSEL to 0000 I canŽt access the Atmega 162 any longer. How can I reset the fuse bit again? Searching the forum did not give me an answer.
Thanks for your help,
Michael |
|
Back to top |
|
|
dh4fah
Joined: 31 Jul 2005 Posts: 20 Location: Germany
|
Posted: Sun Jul 31, 2005 8:15 am Post subject: again: |
|
|
Sorry, I think my previous question was not clear:
I know, I have to connect an external clock to XTAL1, but perhaps I misunderstand. Since the 4MHz-oscillator from the board is already connected, where is the difference to an "external clock"? |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Sun Jul 31, 2005 8:57 am Post subject: |
|
|
Hi, and welcome to this forum.
There is a difference with external clock and external crystal.
So you must put an external frequency to the X1 pin, just an external crystal will not work.
Frank. |
|
Back to top |
|
|
dh4fah
Joined: 31 Jul 2005 Posts: 20 Location: Germany
|
Posted: Sun Jul 31, 2005 9:48 am Post subject: |
|
|
Hello Frank,
thanks for your reply. Luckily I could find a 4Mhz oszillator and got the chip "back" to internal clock. Now, using the 162 with 8Mhz internal I still get no reply when I ping the board.
I tried all hints that I found in the forum, so:
All stacks and framesize are set to 64,
JTag is disabled,
by default the internal clock should have 8 Mhz, I also tried 1Mhz without success.
The Ethernet-LED Link and 100MB are on, 100MB flickers during traffic, so everything looks fine, but still no reply on Pings while running tcpip.bas.
Any ideas how to get more information for debugging?
Michael |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Sun Jul 31, 2005 12:02 pm Post subject: |
|
|
It is important that the IP-address of the easy-tcp/ip is in the same range as the PC.
Like:
PC = 192.168.0.1 Easy TCP/IP = 192.168.0.2
PC = 10.0.0.1 Easy TCP/IP = 10.0.0.2
Also, when the Easy tpc/ip is direct connected to a pc use a cross cable, when connected to a router or something use a straight cable
Frank. |
|
Back to top |
|
|
dh4fah
Joined: 31 Jul 2005 Posts: 20 Location: Germany
|
Posted: Sun Jul 31, 2005 8:15 pm Post subject: |
|
|
Hi Frank,
thanks for your reply. I was aware of the correct IP settings. The problem came from external memory access. Even I set the flag for external access, it was gone when I continued testing - strange.
Now the board works fine, webserver and smpt is ok and IŽll start writing some more programs.
Michael |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Sun Jul 31, 2005 9:13 pm Post subject: |
|
|
Super,
So tell me what are you building ? |
|
Back to top |
|
|
dh4fah
Joined: 31 Jul 2005 Posts: 20 Location: Germany
|
Posted: Wed Aug 03, 2005 10:28 pm Post subject: |
|
|
Hmm,
hard to explain. I'm planning to build a kind of management platform with several input ports and relay outputs to monitor system status, temperature etc. with web status interface and email notification. I started to test with the EIO board but because of the tcpip.lib I think IŽll design a new board similar to Easy/Tcpip Ethernet hardware but with relays and ports like EIO...
Quite a lot of work to do |
|
Back to top |
|
|
|