Part Number: CC2640
Other Parts Discussed in Thread: CCSTUDIO
Hello Experts,
What we are doing
We currently build our CC2640 project in CCS. We are trying to automate this from the command line (CI) using the CCS headless build (Eclipse “server”) so we can compile without opening the IDE.
Questions
Passing preprocessor flags in headless builds
What is the recommended way to inject/override C/C++ preprocessor symbols for a one-off CI build (without permanently changing the project settings)?
Is there a supported command-line switch to pass something like FOO=1, BAR=xyz just for that build?
If possible, please share the exact ccstudio (or eclipsec) command example that CCS expects for adding defines at build time.
Producing Intel HEX output
Our project currently builds the default .out artifact. We need an Intel HEX file for flashing.
What is the recommended way to generate Intel HEX in a headless flow?
Should we call the TI hex/objcopy utility directly in a post-build step (inside the CCS project), or is there a preferred command-line tool invocation after the build completes?
If there are multiple options (e.g., TI ARM hex utility vs. objcopy), which one do you recommend for CC2640 projects, and what is the exact command line (e.g., output format flag for Intel HEX)?
Regards,
Karhikeyan Pnnusamy