The stm8 was ok at the beginning of burning using iar, but the download failed during use. Solution

Publisher:EnigmaticSoulLatest update time:2020-01-19 Source: eefocusKeywords:stm8  iar Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When writing code with iar, use stlink to download, and then eliminate wiring and burner problems, basically you have to re-burn with stvp


Error message:


Failed to set configuration with MCU name STM8S207MB: SWIM error [30006] xxxxxxx


If it's too troublesome, you can directly use svtp to develop


1. Configure iar to output s19 format

insert image description here

insert image description here

Click rebuild all to generate the .s19 file

The file is under Debug/Exe

insert image description here

Open ST Visual Programmer (STVP) and set the hardware connection method and MCU model. Here we take ST-Link connected to STM8S003F as an example and use the swim method.

insert image description here

insert image description here

Import the .s19 file to be burned, set whether to lock the chip (optional)

insert image description here

insert image description here

insert image description here

Click the download button Program --> All tab, and check the information after the download is successful.

insert image description here

insert image description here

insert image description here

If you don't know how to set the hardware connection method and MCU model, please refer to http://jingyan.baidu.com/article/5552ef47f0f3b8518efbc94d.html

ST Visual Programmer (STVP) can be downloaded from the ST Forum

Keywords:stm8  iar Reference address:The stm8 was ok at the beginning of burning using iar, but the download failed during use. Solution

Previous article:The stm8 series uses option_byte to implement port remaping
Next article:How to generate .bin file using MDK (KEIL5)

Popular Resources
Popular amplifiers
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号