Main Content


Create an object for the hardware that a target supports



H = createHardware(hardwareName) returns a matlabshared.targetsdk.Hardware (Hardware) object, H, with the Name set to hardwareName.

A Hardware object represents a hardware board supported by a target.


collapse all

Create a new object, hHw, for the hardware and set its device ID to ARM Cortex-R4.

hHw = createHardware('My first hardware board')
hHw.DeviceID = 'ARM Cortex-R4';

Create a new target using ARM Cortex-R target as the reference target.

hTgt = createTarget('My Target','ARM Cortex-R','c:/mytarget');

Map the new hardware, hWh, to the new target, hTgt, and show the features and hardware supported by the target.

map(hTgt,hHw,'My first hardware board display name');
                         My first hardware board            
Display Name      My first hardware board display name      

Input Arguments

collapse all

Name of the hardware, specified as a string.

Data Types: char

Output Arguments

collapse all

Handle to the Hardware (Embedded Coder Support Package for ARM Cortex-A Processors) object.