Skip to main content
Explorer
June 2, 2023
Question

Running Zephyr RTOS on STM32F303CBT6

  • June 2, 2023
  • 1 reply
  • 1597 views

I have a custom board with an STM32F303CBT6 MCU with an external 16 MHz oscillator, but I am unfortunately not able to get Zephyr RTOS to successfully boot.

From the KConfig options, it does not look like the specific variant of F303 is supported. It does have the following configs:

  • CONFIG_SOC_STM32F303X8
  • CONFIG_SOC_STM32F303XC
  • CONFIG_SOC_STM32F303XE

In addition, the device trees to include is also:

  • zephyr\dts\arm\st\f3\stm32f303X8.dtsi
  • zephyr\dts\arm\st\f3\stm32f303Xc.dtsi
  • zephyr\dts\arm\st\f3\stm32f303Xe.dtsi

Both the config and dtsi are missing the stm32f303Xb variants.

I tried to put my own dtsi file together, but so far without any luck. Its attached to this post.

When using the attached dtsi, the debugger gets stuck in "LL_RCC_HSE_IsReady" defined in modules/hal/stm32/stm32cube/stm32f3xx/drivers/include/stm32f3xx_ll_rcc.h

Debugger is an STM32 programmer connected by SWD to the board.

Any recommendations to get the specific MCU working with Zephyr RTOS?

    This topic has been closed for replies.

    1 reply

    Visitor II
    January 12, 2025

    Hmmm, i believe it will end up there if it does not manage to recieve 500 cycles of the clock, as found in reference manual

     

    Are you sure the hse clock is bypassed?