Getting Started with RSL10
www.onsemi.com
14
Figure 11. Setting Up a GDB Launch Configuration, Debugger Tab
NOTE: If you want to debug an application that does not start at the first address of flash memory, see
Chapter 6, “Advanced Debugging” on page 32.
4. Once the updates to the configuration are completed, make sure the Evaluation and Development Board is
connected to the PC via a micro USB cable, and click
Debug
. J-Link automatically downloads the
blinky
sample code to RSL10’s flash memory.
NOTE: If J-Link does not automatically write your program to RSL10’s flash memory, make sure you
are using the J-Link version specified in Section 2.3, “Prerequisite Software” on page 6.
If you are having trouble downloading firmware because an application with Sleep Mode is on the Evaluation
and Development Board, see Section 6.4.1, “Downloading Firmware in Sleep Mode” on page 40.
5. The ON Semiconductor IDE asks if you would like to open the Debug perspective. Answer
Yes,
and click on
Remember my decision
so that the question is not asked again.
6. The Debug perspective opens and the application runs up to the first breakpoint in
main
, as shown in Figure 12
on page 15. You can press F6 multiple times to step through the code and observe that the LED changes its
state when the application executes the function
Sys_GPIO_Toggle(LED_DIO)
.