Page 1 of 2

HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sun Mar 05, 2023 10:50 am
by dipr
ST_link V2 is setup, latest Firmware flashed, but I still get just the weird message "UR connection mode is defined with the HWrst reset mode" when trying to connect, google is almost empty for the search phrase.

This message happens when
- the WeAct dummy pgm is running after a reset,
- as well as after entering the WeAct bootloader (by holding down key for 3 seconds)
- as well as after eintering STM ROM Bootloader (by holding down BOOT0 while hitting reset)

What am I doing wrong here ?

ST-Link connect error
ST-Link connect error
st-link_error.png (60.88 KiB) Viewed 15747 times
Edit:
I've connected the 4-pin header of WeAct to the corresponding pins on hte ST_Link.

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sun Mar 05, 2023 6:37 pm
by GonzoG
You might need to connect reset pin also.

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sun Mar 05, 2023 7:30 pm
by dannyf
What am I doing wrong here ?
looks like the system detected the stlink, but stlink did not detect the device -> the lower right corner of your capture has blanks for device, ...

ST has a standalone programmer that will show more details, and if you have access to Keil MDK, it shows more info on the stlink programmer as well as the target.

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Mon Mar 13, 2023 9:46 pm
by dipr
But whgat does the message say? I've no idea what a "UR connection" and what the HWrst (HerdWare Reset?) mode is.
"is defined" where?

I want the "hot debug mode", e.g. program is running on the chip, and w/o any reset
I'd like to "attach" to the running chip, watch / stop / continue executiong etc.

How do I setup the st-link and the CubeProgrammer to achieve that?

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sun Mar 19, 2023 2:37 pm
by dipr
So has anyone got an idea what the encountered error message actually wants to tell me ?

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Wed Apr 26, 2023 6:12 pm
by Luczia
I have the same issue, using a chinese clone of a Dongle ST-Link v2.
I can't figure out where it comes from, but interestingly, using the same cable , STM32 Programmer parameters and custom board I can connect using a dongle and not the other.

The working Dongle has a Serial number with several digits while the defective ST-Link has only one serial nubmer : 9.
So I would say that it comes from a hardware difference between 2 ST-Link dongle. May be a defective ST-Link v2 knockout or a corrupted firmware on the ST-Link? Nevertheless, I can update the ST-Link through ST-Link utility without any issue. :roll:

Any other idea would be appreciated.

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sun May 28, 2023 1:17 pm
by FlunkedFleece
I got the same problem. The ST-Link serial number shown was a single character long and displayed "UR connection mode is defined with the HWst reset mode" when I pressed connect.

The fix that worked for me:
1) In the "ST-LINK configuration" on the right. Set the "Shared" element to "Enabled".
2) Then press the small refresh button next to the "Serial number".
3) A new longer serial number should appear.
4) Press connect and it should display a connect message

Hope this helps :)

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sat Jun 10, 2023 7:15 pm
by tomertou
These steps didnt work for me. anything else you might suggest?

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Tue Jun 13, 2023 1:55 am
by ishibashi@techta.jp
I found the solution.
Push select "Enabled" on the "Shared" List.
Next refresh the serial number.
Then serial number would be changed, long number.
After that, you can connect the ST-Link.

Re: HELP! ST-Link message "UR connection mode is defined with the HWrst reset mode"

Posted: Sun Aug 06, 2023 9:31 pm
by manolo88
If I put Shared to enable, At serial number appears no ST link detected when i click on refresh.

Some ideas???