Skip to main content
Pavel_MN
Associate
September 9, 2021
Question

How explain debug data in STM32CubeIDE?

  • September 9, 2021
  • 2 replies
  • 1634 views

Hi! I am start work with STM32CubeIDE last time and I did not understand:

  1. Whay not work elementary function "HAL_GPIO_ReadPin"? Alwais retun "0" but pin state pfisicaly change and change IDR of PORT?
  2. Whay in Stop debug mode I see different data in regisrt IDR, in variable referencing to this register and in memory's adreess of this register?

STM32CubeIDE

Version: 1.7.0

Build: 10852_20210715_0634 (UTC)

0693W00000DmcOJQAZ.jpg

This topic has been closed for replies.

2 replies

Pavel_MN
Pavel_MNAuthor
Associate
September 9, 2021

0693W00000DmcOJQAZ.jpg

TDK
September 9, 2021

The debugger doesn't constantly refresh registers. If IDR is changing, it will report the value at the time it was retrieved. If you have it displayed in two different locations, they may differ.

"If you feel a post has answered your question, please click ""Accept as Solution""."