slawc wrote on Sunday, November 02, 2008:
Hi.
I used this LPC2368 uIP Rowley demo for the LPC2478 part. I changed project setup and init to match new mcu. At first, everything seems to work just fine but while running for some time system just crashed. I opened RTOS statistic page in web browser which is refreshed every 2 seconds. Crash happens in few minutes but it’s not deterministic. I found out that I got undefined instruction exception. If I make jump to the instruction after the one that caused exception with mov pc, lr I always end in emac.c part. I run in Thumb flash debug mode. I noticed that cpsr shows that micro is not in Thumb mode as it should be.
If I change emac.c to be compiled in ARM mode everything works fine without crashing for hours until I stopped the test manualy.
So… can someone confirm that LPC2368 uIP Rowley demo will work seamlessly in Thumb debug mode for more than few minutes (let’s say two horus with five web browsers opened and ping -t option)??? I don’t have LPC2368 Keil board to test it for myself.
Any ideas what is causing undef exception? Maybe someone will ask me the right question and I’ll find out that I missed something.