I am using Keil uVision V220.127.116.11 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.
The IO ports are mapped to memory - so look up how to set breakpoints on memory changes ?
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.
View all questions in Keil forum