SOLVED! Well semi-solved!
1 - I add the component to the project
2 - Generate code
3 - Everything works correctly (only 3 lines)
void AD1_Init(void)
{
OutFlg = FALSE; /* No measured value */
ModeFlg = STOP; /* Device isn’t running */
AdcLdd1_DeviceDataPtr = AdcLdd1_Init(NULL); /* Calling init method of the inherited component */
}
4 - I disabled all methods and only enable “MeasureChan” and “GetChanValue”.
5 - Generate and … the line appears with an error!! It says the only channel methods are selected, this is why the line appears.
void ADC_Init(void)
{
OutFlg = 0U; /* No measured value */
SumChan = 0U; /* Set the counter of measured channels to 0 */
ModeFlg = STOP; /* Device isn’t running */
AdcLdd1_DeviceDataPtr = AdcLdd1_Init(NULL); /* Calling init method of the inherited component */
ADC_PDD_SetFIFO_ScanMode(ADC_BASE_PTR, ADC_PDD_SCAN) /* Only channel methods are selected. To initiate FIFO only one channel in this mode is needed. */
}
6 - The problem is solved if I enable one no-only channel method, but the problem remains unsolved.