2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

STM32に書き込めなくなった時に一旦やること

2
Last updated at Posted at 2026-02-18

はじめに

ただのメモ
直る保証もないし,壊れても知らない

CubeProgrammerでフラッシュメモリを書き換える

参考にした記事
https://community.st.com/t5/stm32cubeide-mcus/how-to-solve-error-finishing-flash-operation-in-stm32cubeide/td-p/53113

症状

  • CUBE IDEで書き込めない
  • そのとき出るエラー
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation
  • CubeProgrammerでただConnectを押しても接続できない.
    ※Reset modeはSoftware reset
    image.png

対処法

CubeProgrammerをインストールして起動しておく.

  1. Reset modeをHardware resetに設定する.

  2. 基板のリセットボタンを押しておく

  3. Connectを押す.
    image.png

  4. 1秒くらい待ってからリセットボタンを離す.(リセットボタンを配線していない場合)

  5. なぜか繋がる

  6. Open fileで書き込みたい.elfや.binを選択して書き込む.
    image.png

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?