Part Number: C2000WARE-MOTORCONTROL-SDK
Tool/software:
Title: How to configure Code Composer Studio to select the correct device folder (MCAL) without using macros in code
Hello,
I’m working with two different microcontrollers in Code Composer Studio (CCS), and I have two separate device folders (MCAL layers), one for each MCU.
I would like to configure CCS so that when I choose a specific build configuration or target configuration, it automatically links and compiles the correct device folder (MCAL) for that microcontroller — without using any #ifdef or macro conditions in the code. The goal is to keep the application code identical and clean across devices.
Is there a recommended way to achieve this through project settings (like build variables, include paths, or linked folders) in CCS?
Thanks, Mostafa.