Skip to main content
deep_rune
Associate III
April 21, 2020
Question

Can i read 'real' inputs from my Nucleo in STM32cubeIDE debug mode?

  • April 21, 2020
  • 2 replies
  • 846 views

As the title says, I want to look at pin PA9 on my STM32F031K6 nucleo board as I run my program in the STM32cudeIDE debug mode. Will 'real' external inputs be viewable in the watch list? Which register do I have to view? I tried GPIOA->IDR but there seems to be no change

This topic has been closed for replies.

2 replies

berendi
Principal
April 21, 2020

Is GPIOA enabled in RCC->AHBENR ?

Try viewing it in the SFRs view.

deep_rune
deep_runeAuthor
Associate III
April 21, 2020

is that the IOPAEN bit? yes, it is enabled

TDK
Super User
April 21, 2020

GPIOA->IDR is updated during debug mode. You need to ensure it's refreshed appropriately.

"If you feel a post has answered your question, please click ""Accept as Solution""."
deep_rune
deep_runeAuthor
Associate III
April 21, 2020

Ok sounds good, how do i make sure it's refreshed appropriately?