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-M4F.

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

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

hTgt = createTarget('My Target','ARM Cortex-M','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.