Embedded Target for Motorola MPC555    

Downloading the Application to RAM via CAN

The Download Control Panel utility can be used to download application code to MPC555 RAM or to MPC555 flash memory.

In this section, we will use the Download Control Panel utility to download the generated Target_ram.srec file to RAM on the target system.

Do the following before you begin:

To download the generated Target_ram.srec file to RAM:

  1. Type the following command at the MATLAB command prompt:
  2. The Download Control Panel window opens.

  1. Select RAM application code from the Download type menu.
  2. Enter the name of the file to be downloaded into the Filename field. Alternatively, you can use the Browse... button to navigate to the desired file. The Download Control Panel should now appear as shown in this picture.

  1. Click on 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. This picture shows the CAN Options configured for a Vector-Informatik CANAC2pci card, channel 1.

  1. Click on the Download tab. Then click on the Download button, and immediately press the reset button on your PhyCORE-MPC555 board.
  1. Downloading commences, and the Download button caption changes to Stop.

  1. While downloading proceeds, numerous messages are displayed in the MATLAB command window. A successful download ends with the following messages:
  1. After the download, the Stop button caption changes back to Download.

    If the download does not succeed, reset your development board and return to step 6.

  1. Close the Download Control Panel window.
  2. A few seconds after a successful download, the boot code transfers control to the application program. At this point, you should see two LEDs (red and green) blinking on the target board. This indicates that the program is operating correctly.

Note that you can monitor the progress of the flash download using a program such as CANalyzer. Alternatively, you can use the btest32 utility supplied with the Vector Informatik driver software. You can invoke the btest32 utility from the PC command prompt. The following example runs btest32 with a baud rate of 500000:


  Downloading the Application to RAM via SingleStep/BDM Downloading Boot and Application Code