Embedded Target for Motorola MPC555 | ![]() ![]() |
MATLAB Commands for Working
with Target Preferences
You can create, modify, activate, or examine target preference objects via several MATLAB commands.
gettargetprefs Command
The gettargetprefs
command retrieves the currently active target preferences. Note that until you have invoked settargetprefs
, there are no active target preferences. If there are no active target preferences, gettargetprefs
returns the factory default values.
The following example retrieves the active preferences into the target preference object tpObj:
settargetprefs Command
The settargetprefs command lets you create, clear, or modify your target preference settings. Until you have invoked settargetprefs, there are no active target preferences.Valid syntax for the settargetprefs command is shown below.
To reset to the factory default values for the target preferences:
To make a target preference object active:
To modify a property value for the target preferences:
To clear the currently active target preferences:
In the sample MATLAB session below. the target preferences are set to the factory default values. The target preferences are then returned to an object, tpObj:
>> settargetprefs('mpc555dk','factory') >> tpObj = gettargetprefs('mpc555dk') tpObj = target.mpc555dkprefs
display Command
The target preference object implements the display
method. The display
command allows you to retrieve a target preference structure from a target preference object. When the target preference object is already defined in your workspace, you can use the display
command to view your current settings, as shown in the following example:
>> display(tpObj) tpObj = TargetCompiler: 'CodeWarrior' TargetCompilerPath: 'D:\Applications\Metrowerks\CodeWarrior\Bin' CommTimeout: '4' TargetDebugger: 'SingleStep' TargetDebuggerExe: 'D:\Applications\SingleStep\sds762\cmd\bdmp58.exe' CommHostPort: 'COM1' CommTargetPort: 'COM1' CommBaudRate: '57600' PlugInIncludes: ' ' PlugInLibs: ' ' PlugInTLCIncludes: ' '
![]() | Setting Target Preferences | Editing Target Preferences via the Property Inspector Window | ![]() |