Hi,
I did started a project using the STM32CubeMX by selecting the MDK-ARM IDE, Min version: V5.27.
My keil version is: MDL_Lite Version: 5.33.0.0.
The generated code compiled successfully, and I did changes the Debugger from ST-Link to J-Link using SW port and not JTAG.
I click the download button (F8), the flash load finishing successfully, then I press the start/stop debug session, the executable not starting or reaching the start of the main function! see the picture bellow :
when I stop the code execution I can see the next disassembly to be executed but never reach the start of the main function or started over from, even when I press the reset button although the the Run to main() box from the Debug settings is checked.
I am new to Keil.
Please help
Best Regards
JK
Jod said:I am new to Keil
Do you have experience with any other IDE(s)?
https://www2.keil.com/mdk5/learn
Jod said:when I stop the code execution I can see the next disassembly to be executed but never reach the start of the main
So something's getting stuck in the startup code.
Try stepping through the startup to code to what it is - disable 'Run to main':
www.keil.com/.../uv4_dg_debug.htm