I am using MCU Cortex-M4 and running keil on simulator. In debug mode while running it is getting stopped at _sys_open function in call stack but in text editor arrows showing at SystemInit after stopping and we have to again initiate run to continue running code. Like this it is getting stopped for 3 to 4 times before entering into main. I am not using break points. I want code to run with out stop after initiating run. please help any one.
So look at what you are calling in SystemInit() and ask yourself why you are doing these things in the simulator, in a pre-runtime context.
Is it stopping on a BKPT instruction?