Downloading the kernel dynamically

About this task

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

  1. Make sure the variable on_board_ram_size in the file <GreenDir>\mbx800\mbx800.ocd is 16 (for the MBX860 board).
  2. Select Target > Connect to Target. The Connection Chooser command window opens.
  3. Enter the following command, then click OK:

    ocdserv lpt1 ppc800 -s <GreenDir>\mbx800\mbx800.ocd
  4. Select Debug > Debug kernel to open the Debug window.
  5. Click the GO toolbar button to download the kernel on to the board and run it.
  6. Invoke another instance of ADAMULTI IDE.
  7. Select Target > Connect to Target to open the Connection Chooser command window.
  8. 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.

  9. From the Windows Start menu, invoke the TFTP server.
  10. Set the base directory in the TFTP server window to the directory where the images are generated (for example, <Rhapsody_install>\Samples\CppSamples).
  11. In the rtserv Task window, select Target > Load Module.
  12. 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.


Feedback