Need help to program an STM32F051K8.
I have an STM32F051K8 that I burned out on a Lumenier tx5gs vtx. It still transmits video but I cannot change channels. I thought it would be fun to try and replace it. Fortunately the 3.3v, GND, SWDIO, and SDCLK pins are all broken out on the board. After installing a new chip (and carefully verifying that it is installed correctly with no shorts, I am attempting to connect with an ST-Link V2. I have the binary firmware from the manufacturer, but no matter what I try I cannot get the ST-Link utility to connect. When JTAG is elected (whatever that means) it either says:
19:45:25 : Can not connect to target!
If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.
If you're trying to connect to a Discovery board, please select SWD mode from Target->Settings menu.
19:45:26 : Unknown target connected
or if SWD is selected I get the following (even when I select the lowest frequency):
19:46:24 : Can not connect to target!
If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
19:46:47 : Can't reset the core
Once I put it into automatic mode and it flashed even though it said failed to connect. Now it just says waiting...
I don't know how it can flash without connecting. I have been able to program an STM32F405 in the past. Is this enough information for someone to tell me what I am doing wrong? I have tried virtually every setting on the ST-Link utility and the firmware says it is up to day on the V2.
