View previous topic :: View next topic |
Author |
Message |
oe5nvl
Joined: 13 Apr 2004 Posts: 3
|
Posted: Tue Apr 13, 2004 8:52 pm Post subject: TCP/IP does not run |
|
|
roll:
i have a IP-Evaluation Board MCS-Electronics (Sold 01/04, mcstcip3.eds) + iim7000a. The base function is OK. e.g. V24 Port, IO ...
But the TCP/IP does not run!
I call the Config TCPIP:
Config Tcpip = Int0 , Mac = 00.00.12.34.56.78 , Ip = 192.168.10.200 , Submask = 255.255.255.0 , Gateway = 192.168.10.10 , Localport = 1000 , Tx = $55 , Rx = $55
the program hangs in the "_init_tcpip:" lib routine on this point:
loadadr s_status(1),X ; address of s_status array
_init_tcpip1:
ld r24,X
cpi r24,ssys_init_ok
brne _init_tcpip1
Compiler Version: 1.11.7.4
libversion = 1.11.7.4, date = 9 nov 2002
thank you
manfred |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Apr 17, 2004 1:09 am Post subject: |
|
|
Hi,
Do you have external memory access enabled in Options, Compiler?
Try to make HW stack, SW stack and frame space, all 64.
Is the module fitted correctly? The IIM7000A is different compared with the IIM7000. It must be placed 180 degrees compared with the IIM7000.
Mark _________________ Mark |
|
Back to top |
|
|
oe5nvl
Joined: 13 Apr 2004 Posts: 3
|
Posted: Sat Apr 17, 2004 10:17 pm Post subject: |
|
|
Hi,
Compileroption is OK.
Stacks are OK.
IIM7000A is right placed.
It does not run!
I use an ATMEGA162 16PI maybe is this the problem ?
Best regards,
Manfred |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sun Apr 18, 2004 12:03 am Post subject: |
|
|
Hi,
The M162 is the right chip to use.
Did you tried the tcpip.bas sample file?
The M162 runs at 1 Mhz internal oscillator by default. You need to set the $crystal thus to 1 Mhz, or change the fusebits so the external oscillator will be used.
And you are sure External memory access is on?
Are the interrupts enabled ?
Enable Interrupts ' must be used BEFORE the CONFIG TCPIP line.
Mark _________________ Mark |
|
Back to top |
|
|
data
Joined: 18 Apr 2004 Posts: 1 Location: Germany
|
Posted: Sun Apr 18, 2004 11:46 am Post subject: |
|
|
Hi,
i have the same IP-Evaluation Board since one week.
I tried to run it for 3 days and had the same problem (TCP/IP does not run).
The Program (tcpip.bas) hangs at the call:
Config Tcpip = Int0, Mac ...
External oscillator will be used (4 MHz), External memory access is on
interrupts are enabled, Stacks are OK, IIM7000A is right placed.
I use also an ATMEGA162 16PI.
I found in another Forum at http://www.mikrocontroller.com/forum.html topics
about problems with JTAG-Bit enabled.
Solution: In BASCOM-AVR search in the programmer interface under Lock and Fuse Bits.
On my MCU was Fusebits-High -> Fusebit F -> 0:Enable JTAG
I change this to Fusebit F -> 1:Disable JTAG
With this modification i had success. The Board is working now well.
Best regards,
Heiko |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sun Apr 18, 2004 5:51 pm Post subject: |
|
|
Hi Heiko,
Very good ! I forgot about the JTAG on the M162. Most new Mega chips have this JTAG interface. And when it is on PORTC, the externall addressing will not work. The W3100 is used in externall address mode.
I will add your remark to the manual. _________________ Mark |
|
Back to top |
|
|
oe5nvl
Joined: 13 Apr 2004 Posts: 3
|
Posted: Sun Apr 18, 2004 9:01 pm Post subject: TCP/IP |
|
|
Thats it !!!!!!!!!!!!!!!!!!!!!
I am very happy, TCP/IP works perfect !!!!
Thank you all,
Manfred
|
|
Back to top |
|
|
|