How to add custom parameter to hardware board settings?
3 次查看(过去 30 天)
显示 更早的评论
Hello!
I'm learning to create custom targets.
Approach described here looks very promising for me, but as far as I don't have any idea about reference target to start with, I have started from scratch:
tgtFolder = 'c:/project/myTarget';
tgt = createTarget('myTarget', tgtFolder);
hw = createHardware('myHw');
map(tgt,hw,'myHw');
show(tgt);
saveTarget(tgt);
At this point my target hardware resources looks like this:

However CPU Clock have no sence to my particular target, and I want to remove Clocking group at all and replace it with my own groups and parameters.
How can I achieve this?
Also I want somehow to access desired parameters from
loader.LoadCommand = 'matlab:myHook';
hook.
Please advice something.
EDIT:
Probably this is not possible to fully control target hardware resources appearance via that interface as it was designed for particular processors and not flexible enough, so I got down to manual editing xml files and now I'm able to make my own parameters and groups there.
However I still need to figure out how to pass hCS and buildInfo to my loader.LoadCommand.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!