Use IAR_STM8 tool chain to develop, compile and debug STM8 projects on vscode

Publisher:chinalisaLatest update time:2022-06-22 Source: eefocusKeywords:vscode  compile  debug Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This article describes how to use the IAR_STM8 tool chain on EIDE to complete project creation, compilation, and debugging using STM8-Debug

This article takes STM8S105K4T6 as an example


1. Create an 8/16 Bit MCU project using EIDE

Note: The STM8 project path should not contain any Chinese characters or spaces, otherwise the debugging function will not be available.

insert image description here

2. Create a folder in the project directory and copy the STM8S standard peripheral library to this directory

insert image description here

3. Add macros, in this case: STM8S105


insert image description here

4. Add the STM8S_StdPeriph_Driver directory to the project and exclude unused and unsupported peripherals

insert image description here

Exclude peripherals that are not supported by the chip and peripherals that are not needed

insert image description here

5. Switch to the IAR_STM8 tool chain, open the configuration, and fill in the link script name to be used

All available linker script locations: stm8config, find the linker script you want to use and fill in its file name here

insert image description here

insert image description here

6. Write the code and compile it

insert image description here

7. Fill in launch.json, connect STLink, and press F5 to start debugging

EIDE will generate a default configuration that can be used as a reference

insert image description here

Keywords:vscode  compile  debug Reference address:Use IAR_STM8 tool chain to develop, compile and debug STM8 projects on vscode

Previous article:STM8-Debug debugger usage
Next article:vscode uses SDCC to develop STM8

Recommended ReadingLatest update time:2024-11-22 16:56

Problems encountered during debugging of Keil5 (MDK5)
Refer to the Atomic Brother tutorial  Development board used: STM32F103RC Keil5 (MDK5) crashes during debugging (IDE has stopped running) http://blog.csdn.net/qq_33259138/article/details/70224581   The phenomenon is that there is no problem in compiling and downloading the program, but after starting Debug,
[Microcontroller]
Problems encountered during debugging of Keil5 (MDK5)
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号