Embedded Target for Motorola MPC555    

Downloading Boot Code

The Embedded Target for Motorola MPC555 provides the boot code in the file bootcode_flash.bin, located in the directory

Normally, you will only need to program the boot code into flash memory once. After this is done, new application code can be downloaded as often as required without any changes to the boot code.

The first time you program the boot code into the target hardware, you must download it via the BDM port. However, if existing boot code is already programmed into flash memory and must be replaced (for example, with a newer or modified version) it is possible to download over CAN. In this case the boot code actually replaces itself.

Downloading Boot Code via BDM

A variety of proprietary tools are available for flash programming the MPC555 over the BDM port. In the section Configuring SingleStep and Downloading Boot Code, we describe how to program the flash memory using the Wind River Systems SingleStep debugger.

Downloading Boot Code via CAN

You can use the Download Control Panel to download new boot code to the MPC555, providing that existing boot code is already programmed onto the target hardware. (Recall that the first time boot code is programmed, it must be downloaded via BDM). Normally, you would not need to replace existing boot code unless there is an upgrade to the boot code supplied with this product.

To replace existing boot code:

  1. Type the following command at the MATLAB command prompt:
  2. The Download Control Panel window opens.
  3. Select Flash boot code from the Download type menu.
  4. In the Filename field, enter the name of the boot code image file that you want to download. Alternatively, you can use the Browse... button to navigate to the desired file.
  5. Click the CAN Options tab. If necessary, select an appropriate card and port from the CAN hardware pop-up menu. The default settings for the other parameters are appropriate for most cases.
  6. The next step is to download code. The default method for download over CAN requires that you manually reset the target processor in order for the download process to begin. However, under the following conditions, you do not have to reset the target processor manually:
    1. There is an application currently running on the target.
    2. The application running on the target implements the CAN Calibration Protocol (as described in "Downloading Boot or Application Code via CAN Without Manual CPU Reset" on page 3-32).
  1. If the conditions a and b given in Step 6 are not met, you must download by the default method. Click on the Download tab. Then click on the Download button, and immediately press the reset button on your PhyCORE-MPC555 board.
  2. Downloading commences, and the Download button caption changes to Stop.
  3. Close the Download Control Panel window when downloading is complete.

  Overview of Memory Organization and the Boot Process Downloading Application Code