Because two different executable files
are created during code generation, there are two ways to download
the kernel on the target board. The following sections describe both
methods.
To download the kernel on the target
board:
Procedure
Make sure the variable on_board_ram_size in
the file <GreenDir>\mbx800\mbx800.ocd is
16 (for the MBX860 board).
Select Target > Connect to Target. The Connection
Chooser command window opens.
Select Debug > Debug kernel to open the Debug
window.
Click the GO toolbar
button to download the kernel on to the board and run it.
Invoke another instance of ADAMULTI IDE.
Select Target > Connect to Target to open the
Connection Chooser command window.
Enter the following command, then click OK:
rtserv
-port udp@<hostname>
In this command, hostname is the
IP address of the target board. For example:
rtserv
-port udp@194.90.28.151
This command
opens the Task window. You can see some kernel tasks running in the
kernel space on the Task window. Select Target > Show Target windows to see IO
and target windows.
From the Windows Start
menu, invoke the TFTP server.
Set the base directory in the TFTP server
window to the directory where the images are generated (for example, <Rhapsody_install>\Samples\CppSamples).
In the rtserv Task window, select Target > Load Module.
Navigate to the path where the dynamically
download image (*.mod) was generated and select load.
Ensure that the TFTP server is running or
the download process is slow. You can see the download status on the rtserv
target window. Once the image has been successfully downloaded, the
Initial Task is visible in the rtserv Task window in the virtual address
space.