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:iTsAAOSwMmBVpNes
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
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_Pill