Hi, I am evaluating this Tiny TCP/IP Stack on MCB167-NET which has a CS8900 Ethernet chip on-board. My software runs perfectly well in Keil debugger, with the capability to connect to the PC server through TCP/IP. However, when the code is programmed into external flash, the program do a forever loop at this statement at Init8900(void) under CS8900.c file!!! while (!(Read8900(DATA_PORT) & INIT_DONE)) This statement is trying to wait until chip-reset is done. The value obtained when running on external flash is always 0x5555H. All parts of the programs is able to run if I temporarily remove this statement, except the TCP/IP communication. I presume the flash programing is working well then. :) May anybody or Keil with experience on these help me to solve this issue?? Many Thanks!!
Thank you for your info. I have found my problem. I need to set the memory cycle wait state to 3 in the startup file. Nevertheless, your example program is a good way to test whether the ethernet chip is functioning on our target hardware.