2018-08-12 03:03 AM
I make the EWARM code using STM32CubeMX(ver 4.23.0)
I select the NUCLEO-F103RB at the GUI of STM32CubeMX and save using
Project -> Generate code
menu. (I used default settings)
I start EWARM(8.20.2) and add
HAL_GPIO_TogglePin( GPIOA, GPIO_PIN_5 );
HAL_Delay( 1000 );
at the while(1) routine in the main.c.
I re-built a code then
run with 'debug without download'.
But the program doesn't reach 'main' function.
When I break the program, break point is 'HAL_RCC_OscConfig' function.
I'd like to know how to solve this issue.
2018-08-12 01:22 PM
I use Visual Studio with GDB extensions, cost $150...
2018-08-13 09:14 AM
Hi @Himawari ,
oscinitstruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
Try to use the HSI for example and check if your issue is solved.
Khouloud.
2018-08-13 03:04 PM
"I re-built a code then run with 'debug without download'
Your code may run better when it is downloaded to the target.
-- pa