Debugging
Table of Contents
Linux Debug Tricks
For a list of suggestion for debugging common Linux issue, please see page RZ-G/debug_tricks
Debugger Options
This section provides a general overview of the debugging options when working with the RZ Family.
When discussing debugging on a Linux based platform, there are 2 topics to discuss:
Debug System options to choose from
What you will be debugging
First we will outline what are the common system options to choose from, then go into where you can/cannot use them.
System Choices
Below is a list of what your options are for Debug Systems, both free and commercial.
Lauterbach
PowerDebug Series
JTAG Interface is used
Options are available for advanced debugging features. You purchased what you need.
Support and version updates for additional costs.
Kyoto Micro
Partner Jet Series
Software requires yearly maintenance cost.
Used by Renesas teams in Japan (since they can get local support)
Segger
J-Link Series
Only for RTOS debugging, no Linux debugging
For RZ/G, only the CM33 core is supported. The CA55 core is not supported.
OpenOCD
Free open source software
Requires a JTAG adapter. Many options to choose from.
The JTAG adapter you use does not need to be smart. It only needs to send/receive raw data packets. This means you can use some $20 JTAG adapters if supported by OpenOCD.
GDB: The GNU Project Debugger
This is a software solution. No JTAG.
You can debug user applications over Ethernet, USB, Serial or on command line on the target board.
The debug interface is command line. Or, you can use gdbserver to allow a connection to a graphical front end.
Eclipses
Graphical front end for debugging
Requires gdbserver to be running on a target board
Software Sections
Depending on what software you will be debugging will determine what debug options are available.
Boot Loaders
|
|
CM33 sub-core Debugging
|
|
Linux Kernel and Device Drivers
|
|
User Applications
|
|
How to add GDB to Yocto
Add the following to local.conf
EXTRA_IMAGE_FEATURES = "debug-tweaks dbg-pkgs tools-debug"
WHITELIST_GPL-3.0_append = " gdb gdb-dbg gdbserver"
IMAGE_INSTALL_append = " gdb gdbserver"
PACKAGECONFIG_remove_pn-gdb = "readline"
OpenOCD with the RZ/G2
Getting OpenOCD working with the RZ/G2 family
Page: RZ-G/RZG_openocd
Eclipse Development and Debugging with RZ/G2
Using the Eclipse Graphical Debugger with the RZ/G2 family
ARM Performance Monitor Unit (PMU) on RZ/G2L
Provide useful information for debugging and performance profiling for ARM based platform and the driver is already included in linux kernel.
JTAG Connection
Provide guidance on the JTAG circuit for RZ devices
Page: https://renesas-wiki.atlassian.net/wiki/spaces/REN/pages/494960646