Hi, I want to have several linker command files in my project, which should be conditionally included based on predefined macros. However, when using one (e.g. #ifdef DSP28_2809) in the beginning of a file, it seems to not include the file regardless of DSP28_2809 being set.
I have set the macro in C2000 Compiler -> Advanced Options -> Predefined Symbols, and the linker seems to recognize this:
"C:/Program Files/Texas Instruments/C2000 Code Generation Tools 6.1.0/bin/cl2000" -v28 -ml -mt -g --gcc --define=DSP28_2809=1 --define=DSP28_RAM=1 --define=CPU_FREQ=100000000 --diag_warning=225 --display_error_number -z --stack_size=0x300 -m"gpu.map" --warn_sections -i"C:/Program Files/Texas Instruments/C2000 Code Generation Tools 6.1.0/lib" -i"D:/Projects/gpu/lib/pec-lib/debug/crosshairs" -i"C:/Program Files/Texas Instruments/C2000 Code Generation Tools 6.1.0/include" --reread_libs --rom_model -o "gpu.out" "./lib/pec-lib/app/events/events.obj" "./lib/pec-lib/drivers/ti_c28x/adc/adc_012.obj" "./lib/pec-lib/drivers/ti_c28x/ecan/ecan_0.obj" "./lib/pec-lib/drivers/ti_c28x/epwm/epwm_0.obj" "./lib/pec-lib/drivers/ti_c28x/sci/sci_0.obj" "./lib/pec-lib/drivers/ti_c28x/sys/wd.obj" "./lib/pec-lib/drivers/ti_c28x/sys/flash.obj" "./lib/pec-lib/drivers/ti_c28x/sys/clock.obj" "./lib/pec-lib/drivers/ti_c28x/ti/280x/DSP280x_GlobalVariableDefs.obj" "./lib/pec-lib/drivers/ti_c28x/ti/2833x/DSP2833x_GlobalVariableDefs.obj" "./lib/pec-lib/drivers/ti_c28x/utils/timing/DSP28x_usDelay.obj" "./lib/pec-lib/utils/error_handling.obj" "./src/main.obj" "./src/DSP280x_CodeStartBranch.obj" -l"libc.a" "D:/Projects/gpu/lib/pec-lib/math/iqmath/IQmath.lib" "D:/Projects/gpu/lib/pec-lib/math/iqmath/IQmath_fpu32.lib" "D:/Projects/gpu/lib/pec-lib/debug/crosshairs/commros_28xx_full.lib" "D:/Projects/gpu/lib/pec-lib/build/cmd/2809_RAM_lnk.cmd" "D:/Projects/gpu/lib/pec-lib/build/cmd/DSP280x_Headers_nonBIOS.cmd" "D:/Projects/gpu/lib/pec-lib/build/cmd/F2809.cmd"