I have writtemn a program that is totally bug free but when its run it locks.
You got any explanation why it doesnt work? can it be a bug in the uvision?
while(1);
But how would you know if it was working properly, or if there was a bug causing it to "hang" in the startup code...?!
;-)