I've got an LPC1768 project that was opening under the ULink2 debugger to "start of main" just fine, until a few recent changes where I changed from using the SystemTickTImer to using TImer0 for a 1ms interrupt. That code of course is well past the start of main().
Now if if run under the Ulink2 debugger the code only runs after I press F5 THREE times and I have to add my own breakpoint just after the start of main().
How can I get back the normal behaviour?????
Thanks
David
I worked it out - I had removed code for redirecting STDOUT and thought that as I'd removed all the printf statements from my code that it was no longer needed. No such luck :( Deep in the bowels of the CRT (in _printf_fp_hex.o) an SWI instruction was issued. The result was of course a loop at SWI_Handler.
Restoring an fputc intercept solved the problem. No clear why I needed that but if it works...