Technical information

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.
Note: Please note that you need to execute SH2A_SBSTK ENABLE command on the command line to enable breakpoints. To
invoke the command line window click the menu View-> Command Line.
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 an event at the call to main(); by double clicking in the Event Column next to the line to stop at.
Press ‘Reset Go’ on the Debug Tool Bar.
The code will execute to the Eventpoint. At this point all the device initialisation will have been completed.
Press ‘Step In’ on the Debug Tool Bar.
8