Skip to main content
Himawari
Visitor II
Aug 12, 2018 10:03 AM UTC
Question

NUCLEO-F103RB doesn't work.

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.

    This topic has been closed for replies.

    3 replies

    T J
    Senior III
    Aug 12, 2018 8:22 PM UTC

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

    Khouloud GARSI
    ST Employee
    Aug 13, 2018 4:14 PM UTC

    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.
    Aug 13, 2018 10:04 PM UTC

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

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

    -- pa