2022-08-02 02:38 AM
Hello,
I would like to use a stlink V2 programmer purchased here 2548 Adafruit Industries LLC | Schede di sviluppo, kit, programmatori | DigiKey with a STM32 microcontroller(STM32G041) and STM32IDE.
I am using serial wire debug and connections should be fine (I wired just SWDIO and SWDCLK) but when I try to debug in STM32IDE something goes wrong because it seems that I need to update the programmer.
Do you know how to solve this?
Even if I proceed without the update the error comes out
This is what happens if I try to update
Solved! Go to Solution.
2022-08-02 05:23 AM
Although not an official ST product, these sticks usually work. The STLinkUpgrade tool should be able to identify th current firmware version and not say "Unknown". Try removing an re-inserting the stick while STLinkUpgrade is open and repeat. You could also try another tool: STM32CubeProgrammer for updating.
Updating works with no pins connected, SWD not needed. If you have SWDIO and SWDCLK connected, don't forget GND and keep in mind that 3.3V and 5V are usually outputs on those sticks in contrast to other ST-LINK devices.
hth
KnarfB
2022-08-02 05:23 AM
Although not an official ST product, these sticks usually work. The STLinkUpgrade tool should be able to identify th current firmware version and not say "Unknown". Try removing an re-inserting the stick while STLinkUpgrade is open and repeat. You could also try another tool: STM32CubeProgrammer for updating.
Updating works with no pins connected, SWD not needed. If you have SWDIO and SWDCLK connected, don't forget GND and keep in mind that 3.3V and 5V are usually outputs on those sticks in contrast to other ST-LINK devices.
hth
KnarfB
2022-08-02 05:56 AM
Hi there,If you are using any of the debugger you have to update the firmware.Once if you updated that check the connection with the STMcu. VCC,SWDIO,SWDCLCK,GND,NRST pin should be connect properly.
2022-08-02 06:02 AM
Connect the stlink debugger and try to do the firmware updation.
Open the upgrade STlink app --> device connect-> yes
2022-08-02 07:49 AM
Hi all,
After several attempts it started working...honestly I don't know why it did not work at first. Maybe there was a problem in the connection.
2022-08-02 09:03 AM
Yes it will be the connection issue or firmware issues