Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Default Clock Configuration after creating a new Project

Hi!

I work with SW4STM32 for some time now, and I like this tool verry much! After some time working with this tool, i get stuck in a verry basic question:

How do I get the default Timing/Clock configuration of a new project?
If I create a new Project in System Workbench Eclipse, then I do not see any call to a function like SystemClock_Config();
I think there must be some point in the startup, in which the RCC is configured.

Creating new Projekt with: File->New->C Project or File->New->C++ Project
Project Type: Executable->Ac6 STM32 MCU Project
Board Configuration: STM32F072B-DISCO
Firmware: HAL

After this the main loop is empty, but some of the clock configuration is already done: For example, the SysTick works without any further configuration.

Because I don’t need the STM32F072B-Discovery routines, i removed the stm32f072b_discovery.c/stm32f072b_discovery.h. Probably this is not the nice way to create a new empty project for a custom board.

I also did some projects with keil or imported CubeMX projects, then one of the first points in the main is the function call to RCC_Config (or something similar). But in SW4STM32 i did not get the entry point to check my RCC Config.

If anyone is experienced with the system startup, i realy would appreciate a little list, in which the steps bevore entry in the main() are explained.

best regards
Matthias