8 years, 9 months ago.

compiler error, fle not found

Compiler do not find included file stm32l1xx.h.

how to port this library for NUCLEO STM32F103RB ??

Question relating to:

Lib to change the clock speed of the ST Nucleo L152RE board to 32 MHz. L152, Nucleo

1 Answer

8 years, 9 months ago.

The time the nucleo board was released, the mbed lib has not init the L152 to the maximum speed. This lib was created to speed up the board to the max. Today all boards are set up with the maximum speed.

If you want to change the clock setting import the mbed-dev lib. You can find the functions to change the clock settings in the target/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB folder. Have a look at stm32f1xx_hal_rcc.h . The clock settings of the STM32 are complex. The best way to get to a useful setup is using the STM32CubeMX software. Go to the www.st.com and install the STM32CubeMX software. Start a project and select the STM32F103RB. Select the Clock Configuration tab. You can see the different clock path and settings.

Accepted Answer