Renesas SH7086 Network Card User Manual


 
Chapter 6. Downloading and Running the Tutorial
Once the code has been built in HEW it needs to be downloaded to the RSK.
Now that you are connected to the target you should see an additional category in the workspace view called ‘Download Modules’
Right click on the download module listed and
select ‘Download’
On completion the debugger and code are ready to be executed.
To start debugging we need to reset the debugger and target.
Press ‘Reset CPU’ on the Debug Tool Bar.
The File window will open the Tutorial code at the entry point. An arrow marks the current position of the program counter.
We will now skip over the initialisation code and proceed to the main tutorial.
Open the file called ‘resetprg.c’ by double clicking it in the project navigator.
Place a breakpoint at the call to main(); by double clicking in the column containing the PC arrow, next to the line to break
at; or selecting the line and pressing F9; or right click on the line and select ‘Toggle breakpoint’
Press ‘Reset Go’ on the Debug Tool Bar.
The code will execute to the breakpoint. At this point all the device initialisation will have been completed.
10