Skip to main content
JAlca
Associate III
February 19, 2020
Question

CPU freeze when, in the SFR window, I try to display ADC1 content.

  • February 19, 2020
  • 1 reply
  • 590 views

I'm using ADCs on a STM32F3 MCU.

The program is reading the ADCs, alternating between continous and single mode.

If I run the program without breakpoints, it works properly.

If I insert a breakpoint before the read instruction, the program works properly.

If I open the SFR window, the program still works properly.

If I try to display the content of ADC1, then the CPU freeze.

This topic has been closed for replies.

1 reply

Ozone
Principal
February 19, 2020

> If I try to display the content of ADC1, then the CPU freeze.

This effect will depend on your code, but debuggers are definitely not unintrusive.

Especially displaying the result/receive registers of peripherals is known to alter the execution path, since reading this registers clears the interrupt flag. A debugger is no exception here.