This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Yet another processor crash!

Yes, my ARM cortex M3 is crashing, whats new?

Well, after 3 weeks of debug  I am no closer to an answer, so I hope you will not mind if I list what I have tried and see if anybody has a flash of inspiration?

The setup:

Bare bones LPC1788 ARM Cortex M3 with graphics LCD. Code in External FLASH, LCD memory external RAM, stack in internal RAM, vectors in internal RAM.

Runs fine most of the time.

Running time tick interrupt code in internal RAM (increments a counter). This seems to interact with some main loop code and the processor crashes. Looks like it crashes when a particular part of the main loop meets the interrupt.

There is code in internal RAM for all the traps, none of which are called, including the watchdog trap.

A watchdog reset DOES work.

The xtal oscillator is still running.

The LCD is clocking correctly but displays a single colour. There is no activity on the external memory bus so the LCD has stopped accessing it (or is blocked).

The Jtag debugger works fine up until this point, but the fails when the processor crashes. It says it can't access the debug port.

So, it looks as thought the processor is locked up in some way. I have protected the EMC registers (setup for external pins) with the MMU but no difference.

Where can my processor have gone? How did it get there?

Any suggestions much appreciated.

Chris Williams.

0