STM8xx swim comm timeout

Publisher:Serendipity22Latest update time:2020-04-02 Source: eefocusKeywords:STM8xx  swim  comm  timeout Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

STM8 simulation shows swim error [30004]: comm timeout:

Understanding the problem:

IO multiplexing for option byte write operation. The option byte includes the configuration of the chip hardware characteristics and the protection information of the memory. These bytes are stored in a dedicated block in the memory. In addition to the ROP (read-out protection) byte, each option byte must be saved twice, one in the usual format (OPTx) and one for backup complementary format (NOPTx). The option byte can be modified by the application in IAP mode, but the ROP option can only be modified in ICP mode (through SWIM). For the content of the SWIM programming process, please refer to the corresponding chip manual of STM8S. 


The option bytes of different chips are different in size. For details, please refer to the chip data sheet. For example, using STM8S003F3, the option bytes are as follows:

STM8S003F redefines the multiplexing function bits for 20-pin package products:


The Chinese content of the above picture is as follows:

From this, we can know that: in this program, PC3 and PC6 are complementary PWM, PC4 and PC7 are complementary PWM, all of which are complementary PWM with dead time control, PC3 is the multiplexing function TIM1_CH1N, PC4 is the multiplexing function TIM1_CH2N, PC6 is the multiplexing function TIM1_CH1, and PC7 is the multiplexing function TIM1_CH2. Therefore, it is necessary to turn on the remapping option of the multiplexing function of AFR7 and AFR0.


The IAR compiler settings are as follows:

Keywords:STM8xx  swim  comm  timeout Reference address:STM8xx swim comm timeout

Previous article:Introduction to Stm8 bootloader
Next article:IAR for stm8 burns configuration operations through ST-link

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号