Skip to main content
khong.1
Associate
April 8, 2020
Question

Wrong address in debug mode.(STM32G431)

  • April 8, 2020
  • 2 replies
  • 994 views

Hi I am using STM32G431 and last version of CubeIDE.

When I am debugging on ADC12 Common resistor, It's address is 0x50000200.

The address should be 0x50000300.

How can I change that address?

Or Can you change it?

This topic has been closed for replies.

2 replies

TDK
Super User
April 8, 2020

It's defined in stm32g431xx.h. Make sure you're including the right file. Appears to be correct:

#define ADC12_COMMON_BASE (AHB2PERIPH_BASE + 0x08000300UL)

 https://github.com/STMicroelectronics/STM32CubeG4/blob/master/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g431xx.h

"If you feel a post has answered your question, please click ""Accept as Solution""."
khong.1
khong.1Author
Associate
April 8, 2020

Thank you for your answer. But I am talking about SVD File.

Anyway I found that file below link.

https://github.com/posborne/cmsis-svd/

and I changed the base address of ADC12_COMMON_BASE.

Now I can debug without problem. I think ST should change SVD file.

Amel NASRI
Technical Moderator
April 10, 2020

Hi @khong.1​ ,

Thanks for bringing the error to our attention. It is tracked internally.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.