RTW Programmatically Set Define Flag
显示 更早的评论
I am using Simulink to do code gen and build SW for my TI hardware. I am able to successfully build my code by including a custom define flag to the build process:

This ensure that I have this definition in the generated make file

However I want to include this define programatically. How can I do this through matlab code?
I tried using the below and it did not work
myModelBuildInfo = RTW.BuildInfo;
addDefines(myModelBuildInfo,'-DBOOTLOADER_CAN_FLASH','OPTS');
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!