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


Semihosting for the Blue Pill board (STM32F103C8T6) [SOLVED]

Hello!

The memo describing how to setup the semihosting in SW STM32 is in
C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.documentation_1.2.0.201705091103\Advanced

It took me minutes to make the semihosting work. The text is very clear and very well illustrated, so I recommend it. There are other pieces of good documentation from Ac6 at
C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.documentation_1.2.0.201705091103 :
CreateProject
ImportProject
Tips
BuildConf
Debug

However, I still do not understsnd if I can open an arbitrary file on the host’s hard drive and write to it from the target’s program, or I can only redirect stdout or/and stderr to the host? Would be nice if anybody explained.


I work in Windows 7. I am using SW STM32 Version: 2.0.1.201705161428.
I am trying to build a progect based on STM32F10x Standard Peripherals Library Drivers (StdPeriph_Driver), without STM32CubeMX.
The used hardware is (as was shown in one of the posts here):
The ST-Link v2 adapter:
http://www.ebay.de/itm/ST-LINK-V2-ST-LINK-STM8-STM32-kompatibler-Emulator-USB- Programmer-Debugger-/171689684649?hash=item27f980aea9:g:iTsAAOSwMmBVpNesQuestion
The Blue Pill board:
http://www.ebay.de/itm/Arduino-IDE-kompatibles-Board-STM32-STM32f103C8T6-ST-ARM-32-
bit-Cortex-M3-039-/221812183158?hash=item33a5095076:g:tI4AAOSwHnFVj5Aq
Question
Now one can buy it for $1.75.

There is a good, detailed description of the Blue Pill board, with great pinout and schematic at:
http://wiki.stm32duino.com/index.php?title=Blue_PillQuestion

Hi,
I followed the instruction to enable semihosting by creating a basic project using cubeMx for a blue pill(STM32F103C8T6) with no success. semi hosting was effectively enabled (console output) but the printf triggers a hardFault_Handler ().
However, I tried the same instructions with 32F429IDISCOVERY board and the printf works fine on the openOSD console.
Any ideas ??
Thanks.
Atef