RSK+RZA1H
4. Reviewing the Tutorial Program
R20UT2845EG0200
Rev.
2.00
Page 23 of 34
4. Reviewing the Tutorial Program
This section will look at each section of the tutorial code and basic debugging functionality in DS-5.
4.1
Main Functions
This section will look at the program code called from with the main() function, and how it works.
Start a debug session for the Tutorial
program as described in the previous
section. The debugger should
connect and the program will be
stopped on the first line of the main()
function as shown in the screenshot
opposite.
Click on the line containing the
‘flashled()’ function call in ‘main()’ to
position the cursor. Right-click and
select ‘Run to Selection’ to execute
the program up to this line. The
‘R_LCD_Init()’ function call enables
and configures the LCD, and
‘Display_LCD()’ will write
“RSK+RZA1H” on the top line and
“Tutorial Sample” below.
Set a breakpoint on the ‘static_test()’
function call by double-clicking in the
breakpoint column.
Click the ‘Step Source
Line’ button to step into
the ‘flashled()’ function.
Mar 21, 2014
Содержание RZ/A1H Series
Страница 34: ...RZA1H Group R20UT2845EG0200 ...