First of all, I apologize for the delayed response, and I kindly ask for your understanding that, due to company policy, I am unable to upload files.
The issue occurs within the Bctu_ConfigAndUpdateFifoNotification function, specifically in the following code segment:
Mask |= FifoConfig->FifoDmaEnable ? (BCTU_FIFOCR_DMA_EN_FIFO1_MASK << FifoConfig->FifoIndex) : 0U;
Mask |= FifoConfig->bEnNotif ? (BCTU_FIFOCR_IEN_FIFO1_MASK << FifoConfig->FifoIndex) : 0U;
SchM_Enter_Adc_ADC_EXCLUSIVE_AREA_65();
BctuBasePtr->FIFOCR &= ~(Mask);
BctuBasePtr->FIFOCR |= Mask;
SchM_Exit_Adc_ADC_EXCLUSIVE_AREA_65();
After this code is executed, the system no longer proceeds. It seems to get stuck or halt at this point.
I would greatly appreciate your assistance in identifying the cause of this issue and any potential resolutions.
There are rare cases where the execution succeeds, so I am wondering if there are specific conditions that must be met when setting the FIFOCR register.
In normal operation, the value of the FIFO1DR register changes.
(picture adc0 <-> adc1)
In abnormal operation, it does not.
(only adc1)
Thank you for your continued support.
Best regards,