This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
We have a SysConfig design file for a CC1352P1F3RGZ based design that, with sysconfig_1.12.1, generates code that compiles without error. However, after updating to sysconfig_1.13.0, the generated ti_drivers_config.c code for the ADC driver sets adcCC26xxHWAttrs.adcCompBInput to a symbol that is not defined anywhere in the SDK - "ADC_COMPB_IN_ANAIO7" so the code does not compile. With sysconfig_1.12.1, this value was set to "ADC_COMPB_IN_AUXIO7", which is defined in the SDK.
Code generated by sysconfig_1.13.0:
const ADCCC26XX_HWAttrs adcCC26xxHWAttrs[CONFIG_ADC_COUNT] = { /* CONFIG_ADC_0 */ { .adcDIO = CONFIG_GPIO_ADC_0_AIN, .adcCompBInput = ADC_COMPB_IN_ANAIO7, .refSource = ADCCC26XX_FIXED_REFERENCE, .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US, .inputScalingEnabled = true, .refVoltage = 3300000, .triggerSource = ADCCC26XX_TRIGGER_MANUAL, .returnAdjustedVal = false }, };
Code generated by sysconfig_1.12.0 for same design file:
const ADCCC26XX_HWAttrs adcCC26xxHWAttrs[CONFIG_ADC_COUNT] = { /* CONFIG_ADC_0 */ { .adcDIO = CONFIG_GPIO_ADC_0_AIN, .adcCompBInput = ADC_COMPB_IN_AUXIO7, .refSource = ADCCC26XX_FIXED_REFERENCE, .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US, .inputScalingEnabled = true, .refVoltage = 3300000, .triggerSource = ADCCC26XX_TRIGGER_MANUAL, .returnAdjustedVal = false }, };
Is there anything we can do to make sysconfig_1.13.1 generate proper code? Otherwise, we will be stuck with sysconfig_1.12.1 until this is fixed. Thanks.
Hi Tom,
Which version of the SIMPLELINK-CC13XX-CC26XX-SDK are you using? As reflected in the Release Notes, SDK v6.10 uses SysConfig v1.12 whereas v6.20 uses v1.13 and you will need to reference the correct version accordingly. I've confirmed that the SysConfig v1.13 ti_drivers_config settings work as intended with a default SDK v6.20 project, however the .adcCompBInput still equals ADC_COMPB_IN_AUXIO7 in the generated file so I am uncertain how your project is referencing ADC_COMPB_IN_ANAIO7. I could not find any references to ADC_COMPB_IN_ANAIO7 in either the SysConfig or SDK installations.
Regards,
Ryan
Okay, that was the issue and resolution. Thanks! We had gotten to the SysConfig v1.13 upgrade round about via an upgrade to CCS 12.00 and had not upgraded to SDK v6.20. I updated our SDK, and indeed, SysConfig now produces working code, with .adcCompBInput still equal to ADC_COMPB_IN_AUXIO7 as you said. Thanks for your help.