cancel
Showing results for 
Search instead for 
Did you mean: 

How explain debug data in STM32CubeIDE?

Pavel_MN
Associate

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

2 REPLIES 2
Pavel_MN
Associate

0693W00000DmcOJQAZ.jpg

TDK
Guru

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