ST-link V2 Debugger

I am trying to program an STM32 microcontroller using STlink V2 debugger and Arduino IDE. But somehow I was unable to see the STlink device in the upload method even after installing the drivers for the STlink debugger.

Any Idea why I was unable to see it? I am using windows 10 and IDE 2.3.2.

Clone St-link V2 usb dongle?

Not sure. Where should I clone it from?

I asked if it is a clone.

Oh yes.

Wat core did you install for the STM , there is cores that does not support the ST Link.
Use the separate ST Link software to program.

Ok, maybe I should download ST utility software to program the ST Micro. But is there a way to download a bin file from Arduino IDE?

Update your St-link V2 with STM32CubeProgrammer downloadable from STM.

I have the STM32CubeProgrammer Let me update it. All I need is to have the ST link to be appear in the upload method in Arduino IDE so I can flash program my ST Micro using Arduino.

Thanks for taking a look into this @kmin

start STM32CubeProgrammer before plugging it to usb

I updated the firmware on the ST-link V2 with STM32CubeProgrammer and I also tested a blink code using STM32CubeProgrammer on my micro and it works fine.

But I still can't see the ST-link V2 in the Arduino IDE upload method.

The bin files is in windows/temp

@mikedb I am sorry is windows/temp in an Arduino IDE?

did you install STM32 in boards manager?

Yes, I did installed "STM32 MCU Based boards" and I selected the "Generic STM32F1 series" to flash my blue pill.

Arduino IDE -> ST-Link V2 ->BluePill

I have a ST NUCLEO board as well. I was able to flash my NUCLEO without any issues using the Arduino IDE and selecting the upload method: STM32CubeProgrammer (SWD). But I cannot program the BluePill using that upload method, maybe because I am using ST-Link V2 to flash my BluePill.

and you don't see STM32CubeProgrammer (SWD) as upload method?

I do, but it's giving me error "Failed uploading: Uploading error: exit status 127"

try to be more specific with your board. BluePill F103C8, for example if that's your board.

I have tried

  1. BluePill F103C8
  2. BlackPill F103C8
  3. Generic F103C8Tx

They all gives me the same error. I see one guy in youtube uploading the code to the BluePill the same way, but he selected "ST-Link" in the upload method, which I don't see. I was thinking that might be the problem and I am trying to get ST-link into my upload method.