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


new to ST in general... actually new to ARM

Hi,

You can find this kind of examples on ST HAL library examples. Please find below more details.

ST groups their MCUs in families:
STM32F0 - Entry-level ARM Cortex-M0, 16-256 KB Flash, 4-32kB RAM, 48MHz
STM32F1 - Cortex-M3, 16KB-1MB Flash, 4-96kB RAM, 24-72MHz
STM32F2 - Cortex-M3, 128KB-1MB Flash, 64k-128kB RAM, 120MHz
STM32F3 - Cortex-M4 (DSP+FPU), 16KB-512KB Flash, 10k-80kB RAM, 72MHz
STM32F4 - Cortex-M4 (DSP+FPU), 128KB-2048KB Flash, 64k-384kB RAM, 84-180MHz
STM32F7 - Cortex-M7, 512KB-1024KB Flash, 320kB RAM, 216MHz
And Low Power families not listed here

For more details check this page: http://www.st.com/web/en/catalog/mmc/FM141/SC1169?sc=stm32Question

ST provides three kind of boards for starting using their microcontrollers: Discovery, Eval boards and Nucleo boards. From this, Discovery and Nucleo are very affordable. Eval boards are more complex, permits to full explore the microcontroller but are more expensive.

For reference I will use STM32F3 Discovery board: http://eu.mouser.com/ProductDetail/STMicroelectronics/STM32F3DISCOVERY/?qs=sGAEpiMZZMtw0nEwywcFgJyZJO1S2AOEurn3dv8g1%2fA%3dQuestion
This board costs around 10 EUR and has the debugger (STLINK-V2) on-board, so there is no need to buy a separate hardware debugger.

Download STM32CubeMX software from ST. This application is a graphical software configuration tool that allows generating C initialization code using graphical wizards.
Link is here (go to the end of the page in section Get Software): http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF259242?sc=stm32cubeQuestion
After installing STM32CubeMX, from this application you can download and install ST HAL libraries. For the above mentioned board/microcontroller you have to install “STM32CubeF3”.
(If you need more detailes let me know.)

If you prefer, it is possible to download only the HAL library without STM32CubeMX. On the page above check “Related Tools and Software” section.

Once you have download and installed the library check the Examples folder:
\ST_Cube_Library\Repository\STM32Cube_FW_F3_V1.2.0\Projects\STM32F3-Discovery\Examples\GPIO\GPIO_IOToggle
In the above path directory “ST_Cube_Library” is where I choose to download and install the library and the rest of the path is created by installer (and will be the same for all systems). Then you should go to SW4STM32 - this is the project for OpenSTM32 toolchain. Import this project in System Workbench, build and try to debug.

ST examples are organised as below:
>Projects
>>>>Board_Name
>>>>>>Examples - simple examples demonstrating each peripheral
>>>>>>Demonstrations - the example that runs on board from factory (the most complex example)
>>>>>>Applications - demonstrating FreeRTOS, USB, FAT and other middlewares


Another possibility is to generate the code from CubeMX software, then import this code on System Workbench. The only line that should be added here manually (after the code is imported in SW) is the HAL_GPIO_TogglePin() function.
You have to select you board when start the CubeMX and then Clock and GPIO are correct configured.
At this link is described how to import a CubeMX generated project into System Workbench: http://www.openstm32.org/Importing+a+STCubeMX+generated+projectQuestion

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs