cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting target via reset pin

JPFF
Associate

Hi!

 

I'm trying to program a Creality 3D printer 4.2.5 board with an STLINK. This board has a STM32F103RE MCU.

 

I've already successfully flashed this board more than once before with STM32CubeProgrammer. I recall at first it wasn't allowing me to connect either, but then I used the reset jumper on the board to reset the MCU and removed the jumper wire right after hitting Connect and it allowed me to connect.

 

But after programming an open source bootloader and then the main 3D printer firmware right afterwards I'm now unable to connect again.

 

The issue is that I did this (with the Reset jumper wire) whilst the board was on my desk, and not mounted inside the fully enclosed printer. It's not possible for me to be fast enough to hit Connect and turn myself to the printer behind me to remove the jumper wire.

 

So I was wondering if it was possible to connect the Reset pin from the STLINK to the correct jumper pin attached to the Reset pin on the MCU to automatically pull a reset on the MCU.

 

Is this possible? What should the settings on STM32CubeProgrammer be? Should I use hwRstPulse in Mode, and HardwareReset in Reset Mode?

 

Thanks in advance for any help!

1 REPLY 1
Aziz BRIGUI
ST Employee

Hello @JPFF

Thanks for reaching out.

I suggest connecting under reset in your case :

AzizBRIGUI_0-1751884168963.png

Since I'm suspecting your application (Or bootloader) are utilizing the SWD/JTAG pins. What an under reset connection does is it will reset the MCU (With a HW reset, meaning from the reset pin of the ST-LINK) and connect to the halted target (Before any pin configurations).

Hope this helps.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.