Debug Code Integration - Renesas RX Series User Manual

Rx23w group. solution starter kit for rx23w smart configurator
Hide thumbs Also See for RX Series:
Table of Contents

Advertisement

Renesas Solution Starter Kit for RX23W
In the e
studio Project Tree, expand the 'src\smc_gen\Config_S12AD0' folder and open the file
2
'Config_S12AD0.h' by double-clicking on it. Insert the following code in the user code area for function,
resulting in the code shown below:
/* Start user code for function. Do not edit comment generated here */
/* Flag indicates when A/D conversion is complete */
extern volatile
uint8_t g_adc_complete;
/* End user code. Do not edit comment generated here */
Open the file Config_S12AD0_user.c and insert the following code in the user code area for global, resulting in
the code shown below:
/* Start user code for global. Do not edit comment generated here */
/* Flag indicates when A/D conversion is complete */
volatile
uint8_t g_adc_complete;
/* End user code. Do not edit comment generated here */
Insert the following code in the user code area of the r_Config_S12AD0_interrupt function, resulting in the
code shown below:
static void
r_Config_S12AD0_interrupt(void)
{
/* Start user code for r_Config_S12AD0_interrupt. Do not edit comment generated here */
g_adc_complete
=
TRUE;
/* End user code. Do not edit comment generated here */
}
Select 'Build Project' from the 'Project' menu, or use the
errors.
The project may now be run using the debugger as described in §6. When any switch is pressed, the
program will perform an A/D conversion of the voltage level on the ADPOT line and display the result on the
LCD panel. Return to this point in the Tutorial to add the UART user code.
5.5

Debug Code Integration

API functions for trace debugging via the RSSK serial port are provided with the RSSK. Refer to the Tutorial
project folder created according to the Quick Start Guide procedure. Check that the following files are in the
src folder:
・r_rssk_debug.c
・r_rssk_debug.h
Copy these files in to the src folder below the workspace.
In the r_rssk_debug.h file, ensure the following macro definition is included:
/* Macro for definition of serial debug transmit function - user edits this */
#define
SERIAL_DEBUG_WRITE (R_SCI8_AsyncTransmit)
This macro is referenced in the r_rssk_debug.c file and allows easy re-direction of debug output if a different
debug interface is used.
R20UT4449EG0100 Rev. 1.00
Aug.30.19
5. User Code Integration
button. e
studio will build the project with no
2
Page 52 of 64

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx200 seriesRssk

Table of Contents