I am trying to use RTL for the tcp communication part on the lpc2368 project. The stack ran ok on the lpc2378, but on 2368 it appears that the function Init_Tcpnet() somehow disables a jtag. After this function is executed, jtag doesn't connect anymore, giving an error "can't stop arm device". The only way to restore connection is to erase a chip with Flashmagic. If I insert a loop before Init_Tcpnet(), connection never fails. Pins and functions for ethernet are exactly the same for 2378 and 2368, so the reason is not in pin configuration, but somwhere else. Did anybody have a similar problem?
Gennady
Yes, it was a hardware problem. PHY oscillator was connected incorrectly and gave non-standard clock (and consequently no clock to the processor from PHY). Absence of this clock somehow affected jtag connection. Anyway, I am glad it's resolved now.
Thank you for the response.