Hi,
I am using Keil uVision V5.27.1.0 to compile and debug a code produced for an STM32L072 micro
Is it possible to set a breakpoint when an IO port changes and if so, instructions about how to do it would be appreciated.
Thank You
Regards
The IO ports are mapped to memory - so look up how to set breakpoints on memory changes ?
http://www.keil.com/support/man/docs/uv4/uv4_db_exp_pvar_io.htm
Pretty sure the Core doesn't actively probe memory to see it change, you have to read a memory location for the breakpoint unit to inspect it.
The CM0(+) parts also tend to be seriously lacking debug resources to save transistors, so you need to approach the diagnostic exercise in a different direction.
For a GPIO pin, use it to trigger an EXTI, or input to a TIM if that's mappable to the pin in question.