microcontroller


Dump the current firmware from an STM32 microcontroller


I'm working with a commercial device which uses a STM32F103RBT6 microcontroller. I need to replace the firmware to customize some functionalities, but before I would like to dump the current one to be able to restore it if it's needed.
I connected properly the board to my ST-Link v2 programmer, the device is powered by the programmer and in fact when I plug it on the USB the device starts correctly. The problem is that I don't manage to connect to the microcontroller using the ST-Link utility, I always get a "can't connect" error (error message), trying with different settings.
I need to reset the chip before? How?
Thanks!!
Please check you have connected the JTAG/SWD signals from ST-Link debugger to correct pins on the target.
Also ensure the board is power.
Then check settings in ST-Link utility, check JTAG/SWD connection, speed and connect under reset which assert the NRST pin on the target in order to allow connection on JTAG/SWD pins.
If this doesn't work then it can be also the case that the MCU is protected against reading by setting an option byte (look for RDP2 in reference manual). If this bit is set then you won't be able to connect.

Related Links

Right Learning Curve For Microcontroller Programming & Anlog/Digital Electronics [closed]
OpenOCD select target for flash write_image?
A way to change mcu program from the outside
How to send AT-command from any microcontroller to telegesis zigbee?
DC motor speed is too low while interfacing with L293D morot Driver and Atmega8
Difference between PWM1H and PWM1L?
MSP430 wake on radio(WOR) and timer do not work together. What could be wrong?
How to overwrite flash memory on STM32L series of microcontrollers
Difference between DSPIC33 and PIC24 programming?
Stellaris servo control with gamepad
Analog Reading 16f877a in CCS C
Microcontroller Newbe here. LED color pattern controller for arcade machine
“File can not be opened” compiler error in MPLABX /MPLAB IDE
Is it possible to generate an accurate high frequency wave by turnin an I/O port high and low?
PIC16F88 all pins High
Scheduler without OS

Categories

HOME
pact
joomla
logging
postgresql
indexing
marie
itunesconnect
netty
alasql
leaflet
postgresql-9.3
mysqli
pelican
display
grpc
ibm
blob
bitbucket
query-string
atlassian-fisheye
symfony-3.2
kendo-asp.net-mvc
install
scapy
wkhtmltopdf
digital
select2
mamp
elastalert
decoding
guidewire
tracking
template10
filehelpers
airbnb
udeploy
glibc
keystone
coccinelle
struts
aspxgridview
hierarchical-data
visual-studio-debugging
microstrategy
angularjs-resource
border-layout
yelp
peerjs
libzip
result
cakephp-3.2
yank
evaluation
noise
serialversionuid
runtime-permissions
sharpdevelop
wink
node-java
fckeditor
opticalflow
zedgraph
ios-keyboard-extension
scrollmagic
breadcrumbs
lattice
particle-system
hoare-logic
patching
db2-zos
cascading
nonblocking
overlapping
controlpanel
imageicon
identifying
openhab
borland-c++
p4python
mri
teamstudio-unplugged
grunt-contrib-connect
yosemite
breeze-sharp
enquire.js
dayofweek
internet-radio
cvi
git-subtree
mongoid4
php-amqplib
xtify
xml-validation
friendly-id
objectdatasource
usersettings
android-library
wpd
kademlia
cocotron
coinbase-php
bho
spawn
cloudmade
linear-interpolation
esi
databus
states
stl-algorithm
project-files
isgl3d
vectorwise
nstoolbar
linq-to-mysql
konsole
urlscan

Resources

Encrypt Message