This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634-Q1: AM2634-Q1: Autosar : Adc_StartGroupConversion API does not provide updated ADC results in the same ignition cycle

Part Number: AM2634-Q1

High Prio :

MCAL version : MCAL_AM263x_09.00.01.01

We are triggering Adc_StartGroupConversion for ADC channel groups, mapped for ADC SW trigger, cyclically at every 5ms, as in the screen below.

We see that the ADC result buffers do not show us an updated ADC conversion result for any of the channels mapped to the ADC group triggered by the SW trigger.

I am monitoring ADC0_1 to which I vary the Voltage inputs. ADC0_1 is the 1st channel in the group of 4 ADC channels which is mapped for SW trigger.

I can only see the updated voltage value in the next ignition cycle once i reset the ecu. 

Test on LP eval board.

Temporary fix : He have currently changed all the SW triggered groups to be triggered as HW triggered groups based on EPWM0_A.

motor spinning tests are blocked due to the improper ADC conversion results.

  • Hi Ashish,

    Can you share the ADC group configurations?

    Regards,
    Akshit

  • Hi Akshit,

    Can we have a short alignment tomorrow at 11am UK time please if it work fine for you. I have updated the parallel ticket as well. I do not have any conversion results for the ADC SW group SoC.

  • Hi Ashish,

    Sorry for the delay.
    Right now we're checking and trying to reproduce the issues locally, that's why the ADC group config would help.

    Regards,
    Akshit


  • Hello Akshit,

    I have tried to attach the xdm files. but it does not seem to get attached unlike the .c file.If xdm would help you better, please send me a mail to ashish.sebastian@empelsystems.com.


    4544.Adc_PBcfg.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    *
    * Copyright (c) 2023 Texas Instruments Incorporated
    *
    * All rights reserved not granted herein.
    *
    * Limited License.
    *
    * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
    * license under copyrights and patents it now or hereafter owns or controls to make,
    * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
    * terms herein. With respect to the foregoing patent license, such license is granted
    * solely to the extent that any such patent is necessary to Utilize the software alone.
    * The patent license shall not apply to any combinations which include this software,
    * other than combinations with devices manufactured by or for TI ("TI Devices").
    * No hardware patent is licensed hereunder.
    *
    * Redistributions must preserve existing copyright notices and reproduce this license
    * (including the above copyright notice and the disclaimer and (if applicable) source
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Ashish,

    Thanks for this, we don't need the xdm, but if you could provide the complete IoHwAb_Cyclic5ms function that would help.

    Thanks

  • I hope this helps

  • Thanks Ashish,

    Can you check the same setup with interrupt mode and let me know if it's working?

    And can you also share what exactly is being done after Adc_ReadGroup function and before calling IoHwAb_Cyclic5ms function again?

    Regards,
    Akshit

  • Hi Akshit,

    I have already tested the interrupt mode long time back. It was working fine. But in our project polling mode is what is needed to be used and hence the new feature was added in the latest release. Sunil and Pratik knows the background. 

    Nothing specific is being done after Adc_ReadGroup. I am just copying the ADC converted value into the RTE buffers to be provided to the user component. something like this.

  • Hi Akshit,
    Do you have any updates on the topic? Do you think a short alignment would be helpful? I can share my screen and discuss on the open points. I have a window until tomorrow afternoon UK time. after then i will only be available the next week as i have demo sessions this week starting Wednesday afternoon.  

  • Hey Ashish,
    sure, let's do a short alignment.
    Let me know what time suits you.

  • Hi Akshit,

    Can we have an alignment in 45 mins? Please use this mail id to set up the call. ashish.sebastian@empelsystems.com

  • Hi,

    Scheduled the call.

  • Hi Akshit,

    Please provide me your email id.

  • [Removed by Moderator]

  • Hi Akshit,

    I have tried this proposal and tested a couple of the ADC channels and looks good so far.