I'm a relative newbie at embedded programming and I've come accross something that maybe could help some other newbies. I had a (for me) reasonable size project, and quite glad when it was finished and run through the simulator. When however I run the program on my target board it would not run at all. Took me days to troubleshoot but at last, I found it. I hope I'm not lying here, otherwise someone will surly rectify me. In the simulator all variables (if not initialised with a value) are allways set to "0" so you can take for granted that everything will start at "0". On the target board this is completely random, unless you initialise the variable with a value, you will not know the initial state. In my application after setting all the variables to a startup state, all was well. Hope this will help someone sometime. Regards John