cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong address in debug mode.(STM32G431)

khong.1
Associate

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?

3 REPLIES 3
TDK
Guru

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
Associate

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.

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.