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.

MSPM0L1106: Can't read sensor input with GPAMP, ADC12, or GPIO

Part Number: MSPM0L1106
Other Parts Discussed in Thread: LP-MSPM0L1306, MSPM0L1306, , SYSCONFIG

I have just started using TI MCU's, moving from ATtiny. I am set up with CCS 20.4.0 and installed the MSPM0 SDK as part of the startup.

I have a PCB with the MSPM0L1106 which I am trying to program and debug using the LP-MSPM0L1306. I've connected it using GND, 3V3, RST, SWCLK, and SWDIO from the bridge to the PCB (disconnecting it from the onboard MSPM0L1306).

I've proved that it is programming it by running some LED blinking programs.

The issue I have is that I can't get the sensor readings to function at all. I have a pressure sensor with wheatstone bridge. It has 2 traces to the PCB, say V1 and V2, which are both 1.65V +/- a small amount based on the pressure reading. I've verified with a multimeter that there is actually voltage there that is connected to the MCU pins.

V1 is connected to pin #22 (PA26 A1), and V2 is connected to pin #14 (PA18/A7), because these are the GPAMP input pins.

In CCS I'm not seeing any readings for the sensor. I have tried setting it up in syscfg as GPAMP, or as direct signal readings in ADC12, or in GPIO. There is nothing coming through for any case, even though the pin actually has a voltage (as confirmed with multimeter).

I am stumped. It's entirely possible that I could have set up something in CCS incorrectly, but I've tried everything I can think of so far. Any direction on potential issues that I could check would be greatly appreciated!

  • For PA18 you need to take care of it. It is BSL invoke pin by default. If you need to use it, you need to modify the nonmain flash to disable the BSL invoke pin or change it to other pins. For more details please refer to https://www.ti.com/lit/an/slaae88d/slaae88d.pdf  section 3.2 Example – Disable PA18 BSL Invoke Pin With Sysconfig

  • Thank you for that Gary. I made those changes. This fixed some other problems I was experiencing with loops not incrementing, but I still see a value of 0 for the raw ADC reading. Is there anything else you are aware of that could be preventing the ADC reading? If there is any more information that you may need to resolve this, such as the syscfg code, or checking registers etc., please let me know. I have still been trying but no ADC data is coming through.

  • It looks like ADC is not starting? In the register for ADC0 it says REFBUFRDY is 0 - NOTREADY, and BUSY is 0 - IDLE

  • You can try to start with our ADC demos that should work with no issue. After that you can change it step by step to your case. During those operation if you got any issue you can ask here