Dear Technical Support Team,
I am writing to report an anomaly observed during ADC data acquisition debugging on an S32K312 microcontroller using the Adc_TS_T40D34M20I2R0 MCAL package (SW32K3_RTD_4.4_2.0.2_D2211). The issue pertains to the incorrect definition of the Last Channel in the ADC instance, specifically affecting DMA buffer population under specific configurations.
Configuration Context:
Observed Behavior:
Root Cause Analysis:
Subsequent logic (e.g., DMA buffer assignment) erroneously treats Channel 0 as the last channel, causing data for Channel 72 to be skipped in the buffer.
4. Code Modification:
Revised Adc_Ipw_CalculateLastChan() to initialize AdcChnIdx with the configured LastCh value (72) instead of 0.
Potential Oversight:
Suspected Bug:
Given that the default initialization (AdcChnIdx = 0) contradicts the configured channel topology, is this a latent bug in the MCAL implementation?
Thank you for your expertise and prompt attention to this matter.
Best reagrds,I've taken the time to check the latest RTD versions, and the following changes have been made in RTD 4.0.0 and later, such as RTD 5.0.X and RTD 6.0.x.
This is likely a known and fixed bug. I recommend that you stop using older versions of RTD.
You may encounter new issues later, but these issues may have been fixed in newer versions,
and we don't have the resources to help you reproduce issues with older versions.