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.

MSPM0L1305: ADC conversions not working

Part Number: MSPM0L1305

Tool/software:

Reply to Diego: For some reason the TI forum is not letting me reply to my last post. I tried the code that you sent me and it seemed to work for a little bit, but now I'm running into the same problem as before where I'm stuck in the WFE() while loop. Could there be any HW configurations on the ADC pins that might affect this?

  • Hi Joseph,
    Can you elaborate on when does it get stuck? Does it happen immediately or after some X time of the code running? After which function/part of the code does it get stuck?

    Best Regards,

    Diego Abad

  • It was getting stuck when updateADC() was being called, however I did a power cycle and it seems to work now. I am not sure if this fixes the problem permanently as this has been a recurring problem that seems to pop up.

  • I'm also getting an issue where it seems like the CHRG_CURRENT and VBAT_SENSE ADC inputs aren't swapping correctly. At times I'm noticing that the values are the same when they should be much different from each other

  • Hi Joseph,
    I think that disabling the ADC conversion could help whenever you change the functionality of the channels you mention. As for the other issue that seems to be getting stuck in updateADC(), there might be something in your code that could be making it be stuck. I would recommend to monitor exactly what conditions make the issue happen (maybe a certain voltage makes it occur this way, or timing.)

    Best Regards,

    Diego Abad