You are on page 1of 7

Lab-Volt model 9035 Digital Servo Controller

How to backup the firmware

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

1. Lab-Volt model 9035-0X Servo Controller


2. Computer with Windows operating system (XP SP2 or above, Vista, Seven)
3. A JTAG-USB Emulator with a 20-way ribbon cable and a USB Cable
4. Segger J-Link with the J-Link ARM v4.10f software

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.

Figure 1: License Agreement

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.

Figure 2: Welcome screen Figure 3: Choose destination folder

5. Choose options for creating shortcuts, then click “Next”. Click “Next” again to begin the
installation.

Figure 4: Choose options Figure 5: Start 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”.

Figure 6: Segger J-Link DLL Updater

7. Click Finish to exit the installation.

Figure 7: Installation Complete

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).

Figure 8: Segger J-Flash ARM

3. Create a new project by clicking on New project in the File menu.


4. To be able to communicate successfully to the microcontroller, the default project
setting has to be modified. In the Option menu, click on Project settings…
5. Go to the CPU tab and select ST STM32F103R8 for the Device, click “Apply”, then
“OK”.

Figure 9: Project settings Figure 10: CPU tab

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.

Figure 11: Connect to microcontroller

7. To backup all flash memory, click on Read back, then on Entire chip.

Figure 12: Read back entire chip

8. A message box will appear on completion, click “OK”.

Figure 13: Memory read successfully

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

9. A new window with the target memory will open.

Figure 14: Target memory window

10. Go to the File menu and click on Save data file as…

Figure 15: 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”.

Figure 16: Save data file as dialog box

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.

Figure 17: Entire chip address range

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

Figure 18: Read back Range...

Figure 19: Writable 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

You might also like