About the failure of downloading stm8 program using stvp and IAR software stlink

Publisher:DelightWish123Latest update time:2015-09-21 Source: eefocusKeywords:stvp Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Recently, I am going to produce 200 devices designed by stm8. I use STVP and stlink tools to download software programs. The programs are .hex files. After handing them over to a factory, I welded, downloaded, and tested them. As a result, there was a problem in the downloading process. I could not download more than 10 times in a row using stlink. Stlink could not download inexplicably. I turned off the power and restarted. Sometimes it worked, and sometimes it really did not work. The prompt message was as shown in the figure below.

Failed to initialize communication with hardware: SWIM error [3]: Detected hardware not compatible with software

Then search for answers online.

Answer 1: There is a 4-pin power chip in the stlink that is burned out. You can replace it and use it.

Answer 2: stlink driver update.

Answer 3: Use st-toolset to upgrade the firmware. Use upgrade to upgrade.

Answer 4: Deleting various ST-related software and re-upgrading the IAR software version can solve the IAR download problem.

I feel that swim is a very strange thing. It often prompts swim error. Although stlink cannot be used to download stm8, it can still be used to download stm32, and this kind of problem has never occurred.

The factory has scrapped my two stlink-v2-isos. I can't find a solution. It is recommended to study STM8 thoroughly, otherwise it is better to use it less. Although it is more cost-effective than 51, it is useless without good compilation software and good download tools! Later, I applied to the company to buy a few new ones. These new ones are stm32 and stm8, which are downloaded separately. After buying them, I installed them according to the instructions. After continuous attempts,

Whether it is usingstlink.jpg

The problem of failing to download using stvp or iar, cannot communicate with the device! After downloading using iar, the error "The debugging session could not be started!" appears.

error1.jpg

Thu Jan 08 10:51:24 2015: Failed to load debugee: and other phenomena have nothing to do with the software version. My problem was solved. The connection line was loose. Change the USB port. If the stlink light changes, check the 4 download cables and the problem is solved!

error2.jpgerror3.jpg

Check the download cable and change the USB port or 4 cables! Problem solved!

Keywords:stvp Reference address:About the failure of downloading stm8 program using stvp and IAR software stlink

Previous article:Weird problem when IAR compiles stm8
Next article:About the problem of stm8s207 timer entering interrupt at the same time

Recommended ReadingLatest update time:2024-11-23 11:01

Weird problem when IAR compiles stm8
Recently, I used the software iar for stm8 to debug the stm8 series chips. When using the timer interrupt, I found a problem. The interrupt entry of the timer in the program is as follows #pragma vector=ITC_IRQ_TIM1_OVF + 2 __interrupt void TIM1_UPD_OVF_BRK_IRQHandler(void)  {              /* Clear the update int
[Microcontroller]
STM8 MCU Learning Summary 04
The "power LED board" made by using STM8 to complete the effective action of mobile phones and computers controlling power devices through Bluetooth has been fully debugged by writing "code" by myself, and many problems have been encountered, which are listed as follows: --------------------------Production-----------
[Microcontroller]
STM8 interrupt mapping
The following table lists the interrupt mapping: (Table 16: STM8 interrupt mapping)
[Microcontroller]
STM8 interrupt mapping
STM8 CRC calculation
STM8 CRC calculation CRC check is only used to ensure the reliability of communication. Separate CRC calculators are used for data transmission and data reception. CRC is calculated by performing a programmable polynomial operation on each received bit. The CRC calculation is performed on the sampling clock edge defin
[Microcontroller]
Solution to stm8 Error[Li005]: no definition for XXX
There was a problem with the gpio.c file before, so I added a new gpio.c in the root folder /inc /src, and then I wrote the serial port function in the stm8_board.c file. When compiling, an error Error : no definition for"GPIO_Init" was reported Meaning: I didn’t define this GPIO_Init() function? Impossible??? ..
[Microcontroller]
Solution to stm8 Error[Li005]: no definition for XXX
Use of STM8 interrupt vector interrupt function in IAR and ucos time scheduling of STM8L
According to IAR rules, the interrupt vector should be increased by 2. For example, if the interrupt vector of the PA port is 3, then #pragma vector=0x05 should be written in the IAR program. However, PD7 is different from other PD ports. PD7 has a small tail TLI. TLI has the highest level interrupt of the chip and ha
[Microcontroller]
IIC protocol based on stm8 --- DS3231 clock module reading
1. Overview The previous protocol has explained in detail the various functions of the IIC protocol. Through the previous protocol, I believe everyone has a certain understanding of IIC. In this blog, I used the IIC protocol to implement DS3231 sensing. Friends who are just learning can buy one to try it out. It is re
[Microcontroller]
IIC protocol based on stm8 --- DS3231 clock module reading
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号