cancel
Showing results for 
Search instead for 
Did you mean: 

Issue programming and debugging STM32G0 MCU with STLINK-V3MINIE in custom HW

ugarcia
Associate

Hello everyone,

I am working right now in a project involving some of ST products. I have my custom HW board with a STM32G0B1 MCU for a specific functionality. In order to work with it and be able to program and debug my project, I was using two main devices: A NUCLE0-G0B1RE development kit to get familiar with the MCU and make some SW tests, and also a few STLINK-V3MINIE programmers to program and debug my custom HW with the STM32G0B1.

 

The problem comes when the ST-LINK device stopped working with a new version of my HW where the MCU is still the same and the debug circuit also remains the same. With the previous HW version it works well and I am able to program and debug it. I also tried with the ST-LINK integrated in the NUCLEO board with SWD connection and this ones DOES work with my new HW.

 

I am quite confused right know because I don't understand which is exactly the problem here. It's not the first time that the ST-LINK V3MINIE is not working as expected. I also tried to update both programmers to see if this was the root cause but nothing changed.

 

The version of the STLINK integrated in the NUCLEO board is V2J45M31 while the version of the STLINK-V3MINIE is V3J16M7. I don't know if this helps or if maybe I could somehow get a previous version in my STLINK-V3MINIE.

 

I also saw some posts related to this topic in this forum but after trying the solutions given in those posts, I am not able yet to program and debug correctly.

 

I would appreciate if someone could provide me with a solutions or some tips.

 

Thank you very much for your time and comprehension.

 

Kind Regards,

 

PD: I attached the related part of my schematics and some screenshots that I took of the VDD, SWDIO, SWCLK, and NRST signals with the debugger working as expected and the new version not working. I hope this helps

1 ACCEPTED SOLUTION

Accepted Solutions
Ozone
Principal

Have you tried a lower JTAG/SWD clock speed with this ST-Link V3 ?

View solution in original post

3 REPLIES 3
Ozone
Principal

Have you tried a lower JTAG/SWD clock speed with this ST-Link V3 ?

ugarcia
Associate

Yes, it looks like 1MHz instead of 8Mhz solves the problem this time.

It's weird though because in my previous HW version worked with 8MHz with the same debugger.

However, this is great news.

Thanks for the suggestion!

 

 

I suppose  the Nucleo onboard ST-Link is not identical to the V3 MINIE, perhaps hardware differences.
I once came across similiar issues, and a reduced SWD clock helped..