cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F446RE - Flashing with SWD in reset held

TH.16.336
Associate III

I am using custom board with stm32f446re7 controller. For flashing that, I am using ST-Link/V2 debugger.

Custom board has SWD 6 pin connector. Did below connections from ST-LINK/V2 to custom SWD connector. But facing below issue even after changing reset mode to "software reset mode" and changing the stm32f4x.cfg file for reset_config to none.

ST-LINK/V2 Custom board connector

VCC (pin 1) --> 5V

SWDIO (pin 7) --> SWDIO

SWCLK (pin 9) --> SWCLK

GND(pin 6) --> GND

RESET(pin 15) --> NSRT

SWO (pin 13) --> SWO

Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

none separate

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

adapter speed: 8000 kHz

adapter_nsrst_delay: 100

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : clock speed 8000 kHz

Info : STLINK v2 JTAG v31 API v2 SWIM v7 VID 0x0483 PID 0x3748

Info : using stlink api v2

Info : Target voltage: 3.215124

Info : Unable to match requested speed 8000 kHz, using 4000 kHz

Info : Stlink adapter speed set to 4000 kHz

Info : STM32F446RETx.cpu: hardware has 6 breakpoints, 4 watchpoints

Info : Listening on port 3333 for gdb connections

Info : accepting 'gdb' connection on tcp/3333

Info : device id = 0x10006421

Warn : STM32 flash size failed, probe inaccurate - assuming 512k flash

Info : flash size = 512kbytes

undefined debug reason 7 - target needs reset

Error: timed out while waiting for target halted

TARGET: STM32F446RETx.cpu - Not halted

in procedure 'reset' 

in procedure 'ocd_bouncer'

Error: Target not halted

Error: failed erasing sectors 0 to 0

Error: flash_erase returned -304

Can someone helps here?

0 REPLIES 0