Hello,
I’m trying to program my STM32 microcontroller STM32F301C8T6TR using ST-LINK, but I keep getting the "DEV_TARGET_RESET_ERR" error. Here’s what I’ve tried so far:
- Reset Pin (NRST): Connected directly to the RST pin of the ST-LINK.
- BOOT0 Pin: Connected to VCC during programming (with a 10k pull-up resistor).
- Power Supply: The microcontroller is powered with 3.3V (measured voltage is 3.26V via ST-LINK).
- SWDIO and SWCLK: Checked the connections with a multimeter, continuity is fine.
- Firmware Update: Updated the ST-LINK firmware to the latest version (V2J45S7).
- STM32CubeProgrammer: Tried "Connect Under Reset" and reduced SWD frequencies, but no luck.
- External Reset Circuit: I’m not using any external reset circuits or chips.
- Alternative Attempt: Added a 1k resistor to the NRST pin, but it didn’t solve the issue.
Despite all these steps, I’m unable to connect to the microcontroller. Has anyone encountered this problem before or has any suggestions?
As it happened before, I could write blink code in it once, but it always gave an error afterwards. I managed to delete it with full erase, but it always gives an error when adding new code.