I wouldn't suggest your work around as a long term solution. If you are scattering loading, I would suspect that something in your scatter file is wrong. Scatter loading occurs in __main() before the call to _rt_lib_init(). I suggest that you double check your scatter file and compare with your memory map. You might also want to check if you stop before _rt_entry(), that memory contains what you expect it to.