Use ST-Link Utility to remove STM32 chip read and write protection

Publisher:CrystalSparkleLatest update time:2018-12-21 Source: eefocusKeywords:ST-Link Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Problem: Unable to download code using ISP/J-Link/ST-Link, etc., prompting that the chip is write-protected; prompting that read protection is displayed when reading chip information.


Cause: Usually the option bytes have been modified. 


mcuisp


Solution: Here, use ST-Link Utility to modify the option bytes.


Use ST-Link to connect to the STM32 chip and click Connect. 


connect


Read protection exists. 


readerror


Modify option bytes. 


changeoption


Change the read protection level to Level 0. 


level0


The sectors with a check will be write-protected. Click Unselect all to uncheck the write protection. 


writeprotection


The Flash will be erased after writing the option bytes. 


eraseflash


The program can be written normally. 


writeprogram


Keywords:ST-Link Reference address:Use ST-Link Utility to remove STM32 chip read and write protection

Previous article:STM32 learning notes: SysTick clock
Next article:STM32F4 startup file analysis

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号