Professional Documents
Culture Documents
This document describes how to do a backup of the firmware. A backup of the original
firmware is highly recommended before proceeding to write a modified firmware in flash ROM
with a JTAG-USB Emulator. The JTAG-USB Emulator use for this demonstration is a Segger
J-Link with the J-Link ARM v4.10f software.
Equipment list
Hardware connection
1. Make sure that the Servo Controller is powered off and connect the power cord of the
module to a power outlet.
2. Connect the JTAG-USB Emulator to the JTAG port on the Servo Controller via a 20-way
ribbon cable, then to a spare USB port on the computer with the USB cable.
Software Installation
1. The latest version of the J-Link ARM software can be downloaded on the Segger web
site: http://www.segger.com/cms/jlink-software.html.
2. Double-click on the setup file Setup_JLinkARM_V410f.exe.
3. Click “Yes” to agree.
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 1/7
Lab-Volt model 9035 Digital Servo Controller
How to backup the firmware
4. Click “Next”, then click “Next” again to install to the default folder.
5. Choose options for creating shortcuts, then click “Next”. Click “Next” again to begin the
installation.
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 2/7
Lab-Volt model 9035 Digital Servo Controller
How to backup the firmware
6. During files copy, the following windows may appear if IAR Embedded Workbench is
already installed on the computer. If you want to update DLL use to communicate with
J-Link, click the check box, then on “Ok”.
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 3/7
Lab-Volt model 9035 Digital Servo Controller
How to backup the firmware
Firmware Backup
1. Be sure that the Servo Controller is powered on and the JTAG-USB Emulator is
connected (J-Link: green LED lit on ).
2. Run the J-Flash ARM executable (Start -> All Programs -> Segger -> J-Flash ARM).
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 4/7
Lab-Volt model 9035 Digital Servo Controller
How to backup the firmware
6. To establish the communication with the microcontroller, click “Connect” in the Target
menu. After few seconds, the log window will display Connected successfully.
7. To backup all flash memory, click on Read back, then on Entire chip.
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 5/7
Lab-Volt model 9035 Digital Servo Controller
How to backup the firmware
10. Go to the File menu and click on Save data file as…
11. A dialog box will open, change the file type to Binary file, select a folder and type a
explicit filename, then click “Save”.
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 6/7
Lab-Volt model 9035 Digital Servo Controller
How to backup the firmware
12. Another dialog box will appear, it’s here you can choose the range that will be save in
the binary file.
Below is the flash ROM Memory Map for the microcontroller. It’s recommended to
backup the entire chip (64kB), but also do a second backup of all pages except DFU
(52kB) as those page are write-protected (grey highlight). You can backup as well only
the application (48 kB).
STM32F103R8 : Flash ROM 64kB (64 pages of 1kB)
0x0800 0000 -> 0x0800 2FFF : DFU, Device Firmware Update via USB (~8kB, 12kB max)
0x0800 3000 -> 0x0800 33FF : Serial Number (1kB)
0x0800 3400 -> 0x0800 37FF : Calibration Value (1kB)
0x0800 3800 -> 0x0800 3FFF : Future Use (2kB)
0x0800 4000 -> 0x0800 FFFF : Application (48kB max)
13. After few seconds, the log window will display Data file saved successfully (65536
bytes, 1 range).
14. To backup a selected memory range, repeat step 7 to 12 but choose Read back
Range… and type the desired address range
15. Make sure to store all backup you’ve made in a safe place. Those backup will be useful
in case of a wrong flash write operation.
Lab-Volt 9035 Digital Servo Controller - How to backup the firmware.doc / 2010-01-13 7/7