Hello
I assume you are using CodeWarrior for your development.
According to your message it looks like the application is taking too much time initializing the global variables and the watchdog is generating a reset at startup time.
There are different ways to avoid that from happening:
1- You can build your application (particularly the file start08.c) with option -D__ONLY_INIT_SP. This will
disable initialization of global variables at Startup. In you are going that way, make sure to initialize all
global variables through assignment in your application.
2- You can decide to disable initialization for some variables only (for instance you know that you are
initializing some variables through assignment). Just define these variables in a user defined section
and place it in a segment with attribute NO_INIT (instead of READ_WRITE).
3- You can also adjust the startup code in the Start08.c source file and add some reset watchdog code
in there to prevent COP to reset the CPU.
If you are using another development tool chain than CodeWarrior you may have to go to your tool vendor and ask him how to fix that.
I hope this helps.
CrasyCat