Creation of Custom Target over Serial Interface
1 view (last 30 days)
Show older comments
I am attempting to learn custom target creation and have been following the step by step insturctions on on doing so. As practice I am set up with a Texas Instruments MSP-EXP430G2 evaluation board.
I got through the creating and testing the framework however, when testing the target hardware using the testTarget(hw,'hardware') function I get a failure everytime. I have set up my board to use hardware UART and set the COM and baudrate of the device to match those that I am calling out in the .m file, but it still continues to fail.
Has anyone had issues with creating a new target and passing these inital tests? If so what did you do to resolve them? Any help would be much appreciated.
I have included my code as a reference(ps I removed my path and replaced it with PATH):
%% Create a framework...
tgt = createTarget('My ARM Cortex M Board Target','ARM Cortex-M','PATH');
saveTarget(tgt);
testTarget(tgt,'framework');
%% Specify the hardware board...
hw = createHardware('MSP430');
hw.DeviceID = 'ARM Cortex-M4';
map(tgt,hw,'MSP430');
show(tgt);
io = addNewSerialInterface(hw,'My Serial Interface');
io.DefaultPort = 'COM1';
io.DefaultBaudrate = 115200;
%% Test the target...
testTarget(tgt,'hardware');
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!