cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-F103RB doesn't work.

Himawari
Associate

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.

3 REPLIES 3
T J
Lead

I use Visual Studio with GDB extensions, cost $150...

Khouloud GARSI
Lead II

Hi @Himawari​ ,

  • If you're using the HSE as a clock source (X3 crystal) , the oscillator is not provided on Nucleo 64 boards.
 oscinitstruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;

Try to use the HSI for example and check if your issue is solved.

  • I also advise you to use the most updated STM32CubeMX version (4.26.1) available on ST website.

Khouloud.

Pavel A.
Evangelist III

"I re-built a code then run with 'debug without download'

Your code may run better when it is downloaded to the target.

-- pa