Hi,
I observed this issue using MCUXpresso IDE 11.8.0, SDK 2.14.0 for LPC5536.
To use ADC or DAC of LPC553x you have to enable VREF.
If you enable VREF using Peripherals Tool, you'll get these lines of code added:
const vref_config_t VREF_config = {
.bufferMode = kVREF_ModeHighPowerBuffer,
.enableLowPowerBuff = true,
.enableInternalVoltageRegulator = true,
.enableChopOscillator = true,
.enableHCBandgap = true,
.enableCurvatureCompensation = true
};
static void VREF_init(void) {
/* VREF peripheral initialization */
VREF_Init(VREF_PERIPHERAL, &VREF_config);
}
This is insufficient as it does not power on VREF.
You have to call
/* Enable internal voltage reference */
POWER_DisablePD(kPDRUNCFG_PD_VREF);
before VREF_init() is called.
At least that worked for me.
I consider this a bug in Peripherals Tool.