A long time ago played a few days STM8, today there is a project, leadership in order to save money, let me use this chip development, Cha, in the heart immediately feel there are 10,000 grass mud horse in the Pentium, so degrees ah degrees, pieces find some information, deliberately recorded down, in case later use and forget.
The specific installation steps are as follows:
① installation Sttoolset_pack33.exe
② installation Cxstm8_32k.exe
Install this software will remind you to use email to get license, skip this step directly
③ Running Cxstm8_32k_patch.exe
④ Open the desktop on the St Visual Develop
⑤ Open An example I have provided demo-led
File->openspace
⑥ Copy the Library directory under demo-led to C:\Program files\cosmic\cxstm8_32k and rename it to Stm8lib
⑦ Setting the compilation path
Tools->options->directories
Add C:\Program files\cosmic\cxstm8_32k\stm8lib\inc in Include Files
Add C:\Program files\cosmic\cxstm8_32k\lib in Library Files
Add C:\Program files\cosmic\cxstm8_32k\stm8lib\src in Source Files
When set, click OK.
⑦debug instrument-> Target Settings ... Choose Swim-st-link.
⑧project->settings
Toolset Select STM8 Cosmic
⑨ wiring
Where Stlink above the STM8 interface definition as
10. Debug Debug->strart Debugging after compiling
at this point the entire development environment, even if the build is complete, demo code click Download Source code
Cxstm8_32k_patch.exe
STM8 Development Environment Construction