G
ETTING
S
TARTED
WITH
RSL10
www.onsemi.com
2
Page
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Setting Up the Hardware and Software . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2.1 Preloaded Sample . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Prerequisite Software . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3. Getting Started with the Eclipse-Based ON Semiconductor IDE . . . . . . . . . . . . . . . . 7
3.1 ON Semiconductor IDE and RSL10 CMSIS-Pack Installation Procedures . . . . . . . . . . 7
3.2 Building Your First Sample Application with the ON Semiconductor IDE . . . . . . . . . . 9
3.2.1 Launching the ON Semiconductor IDE. . . . . . . . . . . . . . . . . . . . 9
3.2.2 Importing the Sample Code . . . . . . . . . . . . . . . . . . . . . . . 9
3.2.3 Build the Sample Code . . . . . . . . . . . . . . . . . . . . . . . . 11
3.3 Debugging the Sample Code . . . . . . . . . . . . . . . . . . . . . . . .13
3.3.1 Debugging with the .elf File . . . . . . . . . . . . . . . . . . . . . . 13
3.3.2 Peripheral Registers View with the ON Semiconductor IDE . . . . . . . . . . . . 15
4. Getting Started with Keil . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
4.1 Prerequisite Software . . . . . . . . . . . . . . . . . . . . . . . . . .19
4.2 RSL10 CMSIS-Pack Installation Procedure . . . . . . . . . . . . . . . . . . .19
4.3 Building Your First Sample Application with the Keil uVision IDE . . . . . . . . . . . .20
4.3.1 Import the Sample Code . . . . . . . . . . . . . . . . . . . . . . . 21
4.3.2 Build the Sample Code . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3.3 Debugging the Sample Code . . . . . . . . . . . . . . . . . . . . . . 23
5. Getting Started with IAR . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
5.1 Prerequisite Software . . . . . . . . . . . . . . . . . . . . . . . . . .25
5.2 RSL10 CMSIS-Pack Installation Procedure . . . . . . . . . . . . . . . . . . .25
5.3 Building Your First Sample Application with the IAR Embedded Workbench . . . . . . . .26
5.3.1 Import the Sample Code . . . . . . . . . . . . . . . . . . . . . . . 26
5.3.2 Building the Sample Code. . . . . . . . . . . . . . . . . . . . . . . 28
5.3.3 Debugging the Sample Code . . . . . . . . . . . . . . . . . . . . . . 29
5.3.3.1 Debugging Applications . . . . . . . . . . . . . . . . . . . . . 29
6. Advanced Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
6.1 Printf Debug Capabilities . . . . . . . . . . . . . . . . . . . . . . . . .32
6.1.1 Adding Printf Debug Capabilities . . . . . . . . . . . . . . . . . . . . 32
6.2 Debugging Applications that Do Not Start at the Base Address of Flash . . . . . . . . . .32
6.3 Arm Cortex-M3 Core Breakpoints . . . . . . . . . . . . . . . . . . . . . .33
6.4 Debugging with Low Power Sleep Mode . . . . . . . . . . . . . . . . . . . .33
6.4.1 Downloading Firmware in Sleep Mode. . . . . . . . . . . . . . . . . . . 40
Table of Contents