RTW Programmatically Set Define Flag
Show older comments
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');
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!