2020-02-18 10:45 PM
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.
2020-02-18 10:52 PM
> 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.