1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

STM32を使おう Resetピンが無いSTM32と通信する方法~SoftwareReset~

Posted at

STM32への書き込み方法として、主に、JTAGとしてST-Linkや、UARTによる接続があります。
ST-Linkとの接続にはResetピンが必須ではありませんし、一部のハードウェアにはついていません。
このため、リセットに入ることができず、STM32と通信できない事があります。
これは、初期設定が、HardwareResetになっているために通信出来ないのです。
今回は、HardwareResetからSotwareResetへ変更してみましょう

STM32 ST-LINK Utility

STM32 ST-LINK Utilityを起動します。
初期状態では、当然接続できません。
HardwareReset.jpg

設定変更

Target⇒Settings
image.png
Reset ModeをSotwareResetに設定します。
SoftwareReset-2.jpg
これで通信できるようになりました。
SoftwareReset-3.jpg

STM32CubeIDE

特に設定しないでも通信できました。
もし、通信出来ない場合は、以下を行うことで使えるようになると思います。
Run Configulation
image.png
デバッガ⇒Reset Behaviorに設定します。
image.png
これでSTM32と通信できるようになると思います。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?