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?
After removing all variable initialization from the start up code, all the start up code is doing now is to fill the internal memory from 7fh to 0h with 0, setup the stack pointer and get out. This works well!
Paste your startup code.
You can modify your startup code to initialize (or de-initialize) any peripheral if you want.