How explain debug data in STM32CubeIDE?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-08 7:42 PM
Hi! I am start work with STM32CubeIDE last time and I did not understand:
- Whay not work elementary function "HAL_GPIO_ReadPin"? Alwais retun "0" but pin state pfisicaly change and change IDR of PORT?
- 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)
Labels:
- Labels:
-
STM32CubeIDE
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-08 7:47 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-09 8:25 AM
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".
