We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I am using cortex M microcontroller, working with STM32F051 microcontroller on discovery kit. I am trying to do a project using ADC. I have assigned one pin as ADC using an industrial accelerometer. when I am trying to operate the accelerometer and note the readings of it while debugging i am getting an error that." cannot access target shutting down debugging session". But when I am trying to operate the same pin with variable resistor( potentiometer) it works!!!. How can I solve this problem? - Thanks, Ashok
Make sure you have common grounds, and don't have continuity issues causing processor to reset, or comms with PC to fail. Check USB connector on Discovery end and on PC end, and cable.