Error Flashing Custom Firmware

Discussion related to "under the hood" OpenMV topics.
SP097
Posts: 13
Joined: Fri Jan 26, 2018 12:09 am

Error Flashing Custom Firmware

Postby SP097 » Sat Feb 03, 2018 6:36 am

Hi,
I wanted to play around with the firmware on my OpenMV CAM M7 board and also learn more about STM32 through it.
I have a simple test project that I created on the System Workbench for STM32 that builds fine. I have also created custom board settings
to match the OpenMV I have so that I can flash it through SWD using an ST-Link programmer. Following are the connections I made
STLINKV2----OpenMV 5 Pin Header
GND--------GND
3.3V--------3.3V
SWDIO------SWD
SWCLK------SWC

I have tried programming it with Boot and RST both shorted and un-shorted.
When I attempt to program/debug it I get the following list of errors:

Code: Select all

Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-12-12:21)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter_nsrst_delay: 100
adapter speed: 1800 kHz
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 3.226877
Info : STM32F765VITx.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: STM32F765VITx.cpu - Not halted
in procedure 'reset' 
in procedure 'ocd_bouncer'



Info : flash size probed value 2048
Info : flash size probed value 2048
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: STM32F765VITx.cpu - Not halted
in procedure 'reset' 
in procedure 'ocd_bouncer'


adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: STM32F765VITx.cpu - Not halted
in procedure 'reset' 
in procedure 'ocd_bouncer'



Error: failed erasing sectors 0 to 0
Error: flash_erase returned -304
shutdown command invoked
User avatar
iabdalkader
Posts: 403
Joined: Sun May 24, 2015 3:53 pm

Re: Error Flashing Custom Firmware

Postby iabdalkader » Sat Feb 03, 2018 7:20 am

Hi, try connecting NRST to RST pin.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests