vsocde STM8 debugger usage

Publisher:bemaiiLatest update time:2021-10-26 Source: eefocusKeywords:STM8  debugger Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

STM8-Debug is a STM8 debugger on Vscode. It can debug STM8 by connecting STLink device with GDB.


1. vscode: launch.json configuration

insert image description here


2. F5 to start debugging

insert image description here


Precautions:

  • The executable field of launch.json must be the path to an executable file with gdb debugging information. It can be generated by IAR or COSMIC.

  • This version of GDB does not support any Chinese paths, so all paths cannot contain Chinese characters, including the paths of source code files.


Keywords:STM8  debugger Reference address:vsocde STM8 debugger usage

Previous article:IAR environment STM8 project quickly changes the project name
Next article:STM8 development environment construction (STVD + COSMIC)

Recommended ReadingLatest update time:2024-11-16 13:54

STM8 Learning—LED
No matter what you learn, you must start with the simple things first. Driving the small lights will be the first lesson for learners. To make the small lights flash, you need to configure the status of the IO ports to let the IO ports output high and low levels at intervals. The interval time is at the ms level, other
[Microcontroller]
STM8 Study Notes---Read the STM8S003 MCU serial number
I recently needed to use the serial number of the microcontroller when doing a project, so I looked up the method of reading the UID of the STM8S003 microcontroller. There are two ways to read the UID, one is to read it directly from the address, and the other is to define a union, set the starting address of the unio
[Microcontroller]
STM8 AWU registers
Control/Status Register (AWU_CSR) Address offset value: 0x00 Reset value: 0x00 Position 7:6 Reserved bit, must remain 0 Bit 5 WUF: Automatic wake-up flag This bit is set when the automatic wake-up module generates an interrupt and is cleared by reading AWU_CSR. Writing does not affect the value of this bit 0: No a
[Microcontroller]
STM8 AWU registers
IAR 1.3 for STM8 ST-Link cannot debug or simulate
IAR 1.3 for STM8 ST-Link无法调试 the debugging session could not be started CPU model: STM8F103F3 First, use ST Visual Programmer to download the stm8 to verify the correctness of the hardware. Then open the IAR project: Unable to connect when emulation is found   I changed the CPU model and it worked. Accordin
[Microcontroller]
IAR 1.3 for STM8 ST-Link cannot debug or simulate
STM8 ADC initialization + data collection
ADC initialization function: void Adc_Initialize(void) {     ADC2_Init(ADC2_CONVERSIONMODE_SINGLE,ADC2_CHANNEL_8,ADC2_PRESSEL_FCPU_D2,                         ADC2_EXTTRIG_TIM,DISABLE,ADC2_ALIGN_RIGHT,ADC2_SCHMITTTRIG_CHANNEL8,DISABLE);     ADC2_Cmd(ENABLE);      } in: ADC2_CONVERSIONMODE_SINGLE: ADC conversion
[Microcontroller]
STM8 ADC initialization + data collection
STM8 interrupt vector table
// Copyright (c) 2009, Wolver Wang, Innov Inc. R&D Center // wolver@21com.com // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above cop
[Microcontroller]
STM8 STM8S208MB registers
Pin Type register The STM8S208MB register uses the LQFP80 package. The 80 here means that there are 80 pins, of which 68 are GPIO pins. According to the GPIO port function classification, they are PA group has 6 GPIO ports (PA1-PA6) PB group has 8 GPIO ports (PB0-PB7) There are 8 GPIO ports in the PC group (PC0-P
[Microcontroller]
STM8 STM8S208MB registers
STM8 hardware PWM settings
I've been playing around with STM8 recently, learning and using it, and I found that there are many things I don't understand. I wrote this blog to record my experience of using PWM to control the speed of the motor in the past few days, and also to keep a technical archive for future use. 1. Initialize the timer
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号