cancel
Showing results for 
Search instead for 
Did you mean: 

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

JAlca
Senior

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.

1 REPLY 1
Ozone
Lead II

> 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.