I can't program a STM32F303CBT6 board with SW4STM32

0

I made an electronics project based on stm32f303cbt6. I generated a sample code using cubemx. Now I'm trying to run it on MCU, but I can't flash it. I use STlink v2. SW4STM32 tells me:

Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:33) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html none separate adapter speed: 1000 kHz adapter_nsrst_delay: 100 Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD none separate Info : clock speed 1000 kHz Info : STLINK v2 JTAG v27 API v2 SWIM v6 VID 0x0483 PID 0x3748 Info : using stlink api v2 Info : Target voltage: 3.222632 Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : Stlink adapter speed set to 950 kHz Info : STM32F303CBTx.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : Stlink adapter speed set to 950 kHz Info : Unable to match requested speed 1000 kHz, using 950 kHz adapter speed: 950 kHz target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc in procedure 'program' in procedure 'reset' called at file "embedded:startup.tcl", line 500 in procedure 'ocd_bouncer' in procedure 'ocd_process_reset' in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 248 in procedure 'STM32F303CBTx.cpu' called at file "embedded:startup.tcl", line 382 in procedure 'ocd_bouncer'

** Programming Started ** auto erase enabled Error: Cannot identify target as a stm32x Error: auto_probe failed embedded:startup.tcl:476: Error: ** Programming Failed ** in procedure 'program' in procedure 'program_error' called at file "embedded:startup.tcl", line 535 at file "embedded:startup.tcl", line 476

Why openocd doesn't recognise my STM32F303CBT6? Can I force it to just program my MCU?

stm32
openocd
asked on Stack Overflow Mar 11, 2020 by Niko

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0