
Chapter 6. Downloading and Running the Tutorial
Now 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
• Press ‘Reset CPU’ on the Debug Tool Bar.
The File window will open the Tutorial code at the entry point. An arrow and a yellow highlight marks the current position of the program
counter.
Use these buttons to switch between
‘source, disassembly and mixed
modes’.
We will now skip over the initialisation code and proceed to the main tutorial.
• In ‘Source View’ scroll down the file until you see the call to main.
• 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 event point. At this point all the device initialisation will have been completed.
11
Komentarze do niniejszej Instrukcji