RSL10 Stand Alone Flash Loader
RSL10 Stand Alone Flash Loader
M-20823-008
November 2021
© SCILLC, 2021
Previous Edition © 2021
“All Rights Reserved”
onsemi
RSL10 Stand-Alone Flash Loader Manual
Table of Contents
Page
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Flash Loader Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Flash Loader Operations and Options . . . . . . . . . . . . . . . . . . . . . 4
2.2.1 Flash Regions . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Supported Flash Loader Hardware . . . . . . . . . . . . . . . . . . . . . . 6
2.3.1 SEGGER or IAR Systems J-Link for Arm Processors . . . . . . . . . . . . . . 6
2.4 Trouble-Shooting . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3. Flash Loader User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1 The Program Page . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 The Tools Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 The Options Page . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.4 The Progress Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4. Command-Line Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1 The Program Command . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 The Erase Command . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 The Verify Command . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.4 The Read Command . . . . . . . . . . . . . . . . . . . . . . . . . . 13
www.onsemi.com
2
CHAPTER 1
1. Introduction
1.1 PURPOSE
IMPORTANT: onsemi acknowledges that this document might contain the inappropriate terms “white list",
"master" and "slave”. We have a plan to work with other companies to identify an industry wide solution that
can eradicate non-inclusive terminology but maintains the technical relationship of the original wording. Once
new terminologies are agreed upon, future products will contain new terminology.
This manual provides the information that you need to use the stand-alone flash loader. It describes the operations
that the flash loader can perform, and explains how to configure the flash loader to connect to an RSL10 radio IC.
The stand-alone flash loader is used to program, erase and read flash memory in RSL10.
This manual is aimed at software development professionals who are responsible for developing and/or
maintaining applications based on RSL10.
This manual assumes that a reader will have some familiarity with embedded software development.
1.3 CONVENTIONS
In general, numbers are presented in decimal notation. In cases where hexadecimal notation is more convenient,
these numbers are identified by the prefix “0x”. For example, the decimal number 123456 can also be represented as
0x1E240.
The following special fonts are used in this manual to signify particular types of information:
monospace font
Commands and their options, file and path names, error messages, code samples and code
snippets.
mono bold
A placeholder that represents where you would specify the appropriate information. For
example, you would replace filename with the actual name of the file.
bold
Used for menu names and menu items.
For more information that will help you to use the RSL10 radio IC, refer to the following documents:
www.onsemi.com
3
CHAPTER 2
The stand-alone flash loader can perform the following operations to an RSL10 radio IC:
When programming data from or saving data to a file, the stand-alone flash loader supports the following data file
formats:
• Intel Hex
• Motorola S-record
The stand-alone flash loader communicates with the RSL10 JTAG debug port using a Segger or IAR Systems®
J-Link™ for Arm® processors. This setup is illustrated in Figure 1.
PC Running
Flash Loader
Microcontroller JTAG debug port J-Link USB
Figure 1. How the Stand-Alone Flash Loader Communicates with the Radio IC
The RSL10 radio IC contains multiple sections, all of which can be managed by the stand-alone flash loader. See
the RSL10 Hardware Reference Manual for more information about the sections.
The stand-alone flash loader can perform a variety of operations, and supports the grouping of certain operations.
Chapter 3, “Flash Loader User Interface” on page 8 describes the operations and options available from the graphical
user interface, and Chapter 4, “Command-Line Usage” on page 11 describes the ones available from the command line.
www.onsemi.com
4
onsemi
RSL10 Stand-Alone Flash Loader Manual
Verify erased
This operation verifies that sections of the flash memory are erased. By default, this operation
verifies that all of flash memory is erased. This operation can also verify that one or more
user-specified regions of flash memory is erased.
Device options These options control how the stand-alone flash loader communicates with the RSL10 radio IC.
See Section 2.3, “Supported Flash Loader Hardware” for information on these options.
JTAG speed This option determines the JTAG clock speed that the stand-alone flash loader uses when
communicating with the RSL10 radio IC.
Reset device This operation determines whether the stand-alone flash loader should reset the RSL10 radio IC
after completing the requested operation.
Table 1 maps the tasks you want to accomplish to specific information about the steps, using either the graphical
user interface or the command line interface.
www.onsemi.com
5
onsemi
RSL10 Stand-Alone Flash Loader Manual
When the flash loader is performing operations on user-specified regions of flash memory, a standard format is
used to specify one or more ranges of addresses in flash memory.
start-end,start-end,...,start-end
Each start and end address is a decimal or C-formatted hexadecimal address. Both the start and end addresses
are included in the range. You must specify at least one range, but there is no limit to the number of ranges that you can
include.
For example:
• 0x00040000-0x0007FFFF
• 0-127,256-1023,196-199
For more information about using the flash regions, see Section 3.2, “The Tools Page” on page 8, Section 4.2, “The
Erase Command” on page 12, and Section 4.4, “The Read Command” on page 13.
The Segger J-Link Arm Emulator for Arm® Cortex®-M3 cores, also sold as the IAR Systems J-Link for Arm
Processors, is a small Arm JTAG hardware debug probe. It connects via USB to the PC host running Windows®, and
supports JTAG communication clock speeds up to 12 MHz. The J-Link device connects to the target using a standard
20-pin JTAG cable. This flash loader requires J-Link version 8.0 or higher.
The stand-alone flash loader can connect to a J-Link device in one of two ways:
• J-Link devices can be connected directly to the computer via USB. Each J-Link device is assigned a serial
number. You can optionally enter this number in the flash loader GUI. If multiple J-Link devices are connected
and no serial number is provided, a J-Link window will pop up and request the device selection. If the flash
loader is unable to connect to the J-Link device via USB, it fails with an error. The flash loader does not
attempt to default to a connected device.
• The stand-alone flash loader can also connect over a network to a J-Link device connected to another
computer. On the remote computer to which the J-Link device is connected, you must run the
jlinktcpipserver.exe program. In this case, you must provide the hostname of the remote computer and the
TCP/IP port number (usually 19020) to the flash loader to use the remote J-Link device. See the J-Link/
J-Trace User Guide (document UM08001-R41) from Segger for more information.
2.4 TROUBLE-SHOOTING
Table 2 provides a brief guide to fixing the most common errors that might occur when you use the stand-alone
flash loader. It is not a comprehensive guide to all possible problems. If you try these solutions and they don’t work,
contact your onsemi customer support representative.
www.onsemi.com
6
onsemi
RSL10 Stand-Alone Flash Loader Manual
Verify Failed There was a problem during programming Check that the file being used for the
and the flash loader could not verify the comparison is the same as what should be
contents of flash. in flash memory. For more information
about verifying flash memory, see
Section 3.1, “The Program Page” on
page 8 or Section 4.3, “The Verify
Command” on page 13.
www.onsemi.com
7
CHAPTER 3
When you run the stand-alone flash loader with no command-line options, it operates in graphical mode. In this
mode, the flash loader displays the graphical user interface shown in Figure 2. The user interface consists of three
pages:
• The Program page allows you to program and verify the contents of flash memory.
• The Tools page allows you to erase and read the contents of flash memory.
• The Options page allows you to control how the flash loader accesses the RSL10 radio IC.
For a list of all the tasks you can do with this application, and where to find the corresponding graphical user
interface or command line interface steps, see Table 1 on page 5.
Use the controls on the Program page (Figure 2) to program and verify the contents of flash memory.
For all operations on this page, first enter a filename or click Browse... to select a file. The rest of the controls are:
Program button
Copies the contents of the file to flash memory.
Verify button
Verifies that the contents of flash memory match the contents of the file.
Use the controls on the Tools page (Figure 3) of the flash loader to perform various operations on regions of flash
memory.
www.onsemi.com
8
onsemi
RSL10 Stand-Alone Flash Loader Manual
For all operations on this page, first enter a region in the Region field. If you leave this field blank, the operation
applies to all of flash memory. For information on the format of a region, see Section 2.2.1, “Flash Regions” on page 6.
The controls on this page are applied to the entry in the Region field:
Verify Erased button Verifies that the region of flash memory is erased.
Read... button Reads the contents of the region of flash memory and saves the data. When you press the
Read... button, the flash loader prompts you to select a file for saving the data.
NOP... button Sends a null command to the flash memory to ensure that connectivity is as expected.
Use the controls on the Options page (Figure 4) to control how the flash loader accesses the RSL10 radio IC.
In the Device section of the page, you can select either a USB or Network J-Link device:
• For a USB J-Link device, select the J-Link device serial number.
www.onsemi.com
9
onsemi
RSL10 Stand-Alone Flash Loader Manual
• For a network J-Link device, enter the Hostname and Port of the computer running the jlinktcpipserver.exe
program.
• Change the JTAG Speed. Enter max to use the maximum JTAG Speed supported by the J-Link device, or a
number to specify the speed in kHz.
• Check the Reset the device after operation box to have the flash loader reset the connected RSL10 radio IC
after completing any operation.
The stand-alone flash loader displays the progress dialog box shown in Figure 5 when performing any operation
that communicates with the RSL10 radio IC. The dialog shows the current operation at the top, the overall progress in a
progress bar, and various progress and status messages in the large text box.
After the operation completes, or after you press Cancel, the dialog remains open so that you can inspect or copy
the output of the operation. To copy, select the contents of the dialog and press Ctrl-C. Press Done to dismiss the
progress dialog.
www.onsemi.com
10
CHAPTER 4
4. Command-Line Usage
To start the stand-alone flash loader from the command line, navigate to the location of the Flashloader.exe file in
the RSL10 Utility Apps folder. Add the location of Flashloader.exe to the system PATH environment variable to allow
easy access to this command.
When you run the stand-alone flash loader from the Windows command processor (CMD.EXE) with command-line
options, it operates in command-line mode. In this mode, the command-line options determine the operation to perform,
and all progress and messages are displayed on the console.
Usage:
The options are global flash loader options. Possible global options are listed in Table 3.
The command determines which flash loader operation to perform. Some commands allow command-options
that control the behavior of the command. The commands are:
verify Verify that the contents of flash memory match the contents of a data file, or verify that a region
of flash memory is erased.
read Read a region of flash memory and save the data to a data file.
For a list of all the tasks you can do with this application, and where to find the corresponding graphical user
interface or command line interface steps, see Table 1 on page 5.
www.onsemi.com
11
onsemi
RSL10 Stand-Alone Flash Loader Manual
Use the flashloader program command to write the contents of a data file to flash memory. By default, the
flashloader program command only erases the regions of flash memory that are being written. The flashloader
program command takes the options shown in Table 4.
• To write the contents of blinky.srec to flash memory using a remote J-Link device on a machine named
jlinkserver port 19020:
• To erase all of flash memory, write the contents of blinky.hex to the flash memory, verify that the contents of
flash memory match the file, then reset the device:
Use the flashloader erase command to erase a region of flash memory. By default, the flashloader erase
command erases all of flash memory. The flashloader erase command takes the options shown in Table 5.
flashloader erase
• To erase two blocks of flash memory, using local J-Link device number 2:
www.onsemi.com
12
onsemi
RSL10 Stand-Alone Flash Loader Manual
By default, the flashloader verify command verifies that all of flash memory is erased. The flashloader
verify command takes the options shown in Table 6. You can only specify a region or filename option, but not
both.
• To verify that the entire main section of flash memory is erased, then reset the device:
flashloader -r verify
• To verify that the contents of flash memory match the contents of blinky.srec:
Use the read command to read a region of flash memory and write the data to a data file. By default, the read
command reads all of flash memory. The read command takes the options shown in Table 7.
• To read the contents of two blocks of flash memory and save it to myflash.srec, then reset the device:
www.onsemi.com
13
onsemi
RSL10 Stand-Alone Flash Loader Manual
Arm and Cortex are trademarks or registered trademarks of ARM Ltd. IAR Systems is a registered trademark of IAR Systems AB. J-Link is a licensed trademark of IAR Systems AB.
Windows is a registered trademark of Microsoft Corporation. All other brand names and product names appearing in this document are trademarks of their respective holders.
onsemi and the onsemi logo are trademarks of Semiconductor Components Industries, LLC dba onsemi or its subsidiaries in the United States and/or other countries. onsemi
owns the rights to a number of patents, trademarks, copyrights, trade secrets, and other intellectual property. A listing of onsemi’s product/patent coverage may be accessed at
www.onsemi.com/site/pdf/Patent-Marking.pdf. onsemi reserves the right to make changes without further notice to any products herein. onsemi makes no warranty,
representation or guarantee regarding the suitability of its products for any particular purpose, nor does onsemi assume any liability arising out of the application or use of any
product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages. Buyer is responsible for its products and
applications using onsemi products, including compliance with all laws, regulations and safety requirements or standards, regardless of any support or applications information
provided by onsemi. “Typical” parameters which may be provided in onsemi data sheets and/or specifications can and do vary in different applications and actual performance
may vary over time. All operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. onsemi does not convey any
license under its patent rights nor the rights of others. onsemi products are not designed, intended, or authorized for use as a critical component in life support systems or any
FDA Class 3 medical devices or medical devices with a same or similar classification in a foreign jurisdiction or any devices intended for implantation in the human body. Should
Buyer purchase or use onsemi products for any such unintended or unauthorized application, Buyer shall indemnify and hold onsemi and its officers, employees, subsidiaries,
affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal
injury or death associated with such unintended or unauthorized use, even if such claim alleges that onsemi was negligent regarding the design or manufacture of the part.
onsemi is an Equal Opportunity/Affirmative Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner.
M-20823-008