Other Parts Discussed in Thread: CC2640, , SYSCONFIG
We are porting our old working code for cc2640, on a new MCU cc2642R, to enable LED charge pump after enabling each LED color output:
We observe LEDs Blue and Green giving weak light: The Hardware check shows that the 32 kHz clock Digital Output is not enabled by AONIOC32kHzOutputEnable(void):
Our code:
static void Led_enableChargePump()
{
AONIOC32kHzOutputEnable();
}
static void Led_enableOutput(led_t* pLed)
{
pLed->enabled = true;
PIN_setOutputValue(pLed->pinHandle, PIN_ID(pLed->pinIndex), Board_LED_ON);
#ifndef SENSORTAG
Led_enableChargePump();
#endif
}
We are using SDK: TI_SIMPLELINK_CC13XX_CC26XX 6_10_00_29.
All include files used by us, are from this SDK folder, including IO address #defines (e.g. for AON_IOC_BASE shown below). These address definition files are from 2015-2017, maybe this is OK because the two MCUs are chip compatible?
#define AON_IOC_BASE 0x40094000 // AON_IOC
// SCLK_LF External Output Control
#define AON_IOC_O_CLK32KCTL 0x00000010
The actual TI API used, is shown below (from file aon_ioc.h, year 2022):
AONIOC32kHzOutputEnable(void)
{
// Enable the LF clock output.
HWREG(AON_IOC_BASE + AON_IOC_O_CLK32KCTL) = 0x0;
}
-----------------------
Our Application sysconfig file .syscfg defines initial state high: see attached screenshot: