This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil breakpoint on port change

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

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

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

Children
No data