I have written some code for a Silabs C8051F330 CPU, compiled it and then obviously some C51STARTUP code is generated that initialize the variables. Using my USB debug adaptor I discover the execution got stuck in the C51STARTUP code and it never exits it to the main program. What could be a possible cause for this and how can I fix it?
I mean he could either just disable the watchdog or make the startup code "kick" the watchdog at appropriate points so that it doesn't time out. kicking is not advised, there are, in some cases, more time spent between startup and main than in startup.
besides the OP refer to 'strange assembler code', the code in startup is as simple as can be.
we are back a the old point "to do embedded you need, at least, some assembler.
Erik