Hi,
If you are not handling SWT I recommend you to disable it as first executed instructions in your startup.
Disabling it right before jump to main could not be enough.
Check if your FCCU NCF contain SWT flag or any other flag.
Also check RGM FES/DES registers for reset source.
As your issue description "code does not run" doesn't say much could you specify what you are talking about?
Resets periodically, stuck in loop, end in exception, etc...
Peter