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

Program won't run to Main

I'm running an LPC2144, and my program won't run to main - it freezes up in a 3-line loop in the disassembly window - a BMI instruction in my boot block at 0x7FFFD2DA loops back to 0x7FFFD2D6 and repeats over and over.
It simulates fine, and my stacks should be of adequate size.
For fun, I tried putting this program into my demo board with a LPC2148, and it runs without issue every time.
If I frig around with it long enough, just reloading and debugging over and over, I can sometimes manually step through a bunch of disassembly and get the program to run, after which point I can continue to debug without issue even after a reset. But as soon as I add just one line of code and reload the program, it freezes up all over again.
My program uses the RTX kernel and retarget.c, and I've never seen a problem like this on my other boards using similar programs.

Can anybody point me in the right direction? I'm pretty unfamiliar with most of the lower level stuff.

Parents
  • Update - the program will run, if I hard reset it for the better part of a second.
    The reset that comes from the ULINK is 50ms long, and won't kick it over in debug mode. I soldered in a hard switch, and holding that down longer will make the program run correctly on the next execution from Debug.

    This behavior seems to be isolated to the LPC2144, my LPC2148 works fine with the same program.

Reply
  • Update - the program will run, if I hard reset it for the better part of a second.
    The reset that comes from the ULINK is 50ms long, and won't kick it over in debug mode. I soldered in a hard switch, and holding that down longer will make the program run correctly on the next execution from Debug.

    This behavior seems to be isolated to the LPC2144, my LPC2148 works fine with the same program.

Children