STM8 Development Environment Construction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.