Embedded Target for Motorola MPC555 | ![]() ![]() |
Downloading Application Code
The following sections describe how to download generated image files and run generated code on the target hardware. They also describe how to download to RAM and to flash memory, via either the BDM port, or via CAN.
Downloading the Application Code to RAM
To download application code to RAM, you must generate a code file in Motorola S-record format, which is suitable for downloading and execution in RAM. To do this, select the RAM
option from the Target memory model menu in the MPC555-DK (real-time) options category of the Real-Time Workshop pane. The build process creates two files in the working directory:
model
_ram.srec
: Code only, without symbols, suitable for execution on the target system.
model
_ram.out
: Code and symbols, suitable for use with a symbolic debugger such as Wind River SingleStep.
Downloading the Application Code to Flash Memory
To download application code to flash memory, you must generate a code file in flash binary format, which is suitable for downloading and execution in flash memory. To do this, select the FLASH
option from the Target memory model menu in the MPC555-DK (real-time) options category of the Real-Time Workshop pane. The build process creates the files model
_flash.bin
and model
_flash.out
in the working directory. The model
_flash.bin
file contains an image of the executable code. The model
_flash.out
file contains symbols suitable for use with a symbolic debugger such as Wind River SingleStep.
You can download to flash memory:
Downloading the Application Code
to Flash Memory via BDM and SingleStep
You can use SingleStep to download application code to flash memory via the BDM port. The procedure is almost identical to that for downloading boot code to flash memory.
If you have not created shortcuts to SingleStep, as described in Configure Shortcuts to SingleStep, do so before proceeding. Then, follow the download procedure given in Configuring SingleStep and Downloading Boot Code, with the following differences:
SingleStep On Chip (MPC5xx) for Flash
.
matlabroot\toolbox\rtw\targets\mpc555dk\common\drivers\app_startup\app_flash.pts
1,1
and the Address field to 0x00008000
.
model
_flash.bin
, as the S-record or Binary Image File.
Downloading Application Code to Flash Memory via CAN
You can use the Download Control Panel to download generated application code to the MPC555 flash memory.
To download application code to flash memory, you must generate a code file in flash binary format, which is suitable for downloading and execution in flash memory. To do this, select the FLASH
option from the Target memory model menu in the MPC555-DK (real-time) options category of the Real-Time Workshop pane. The build process creates the file model
_flash.bin
in the working directory.
Do the following before you begin:
vcand32.dll
library, and add a path to the location where vcand32.dll
was installed to the Windows system path.
To download the generated model
_flash.bin
file to RAM:
Flash application code
from the Download type menu.
If the download does not succeed, reset the board and return to step 6.
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:
Once the download process is complete, the application starts running immediately on the target hardware.
![]() | Downloading Boot Code | Downloading Boot or Application Code via CAN Without Manual CPU Reset | ![]() |