cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H730ZB - SDRAM BANK1 wrong address

COSEBE
Senior

Hi,

 

I create a new project with STM32CubeIde 1.15.1 (but same with 1.10.1)

I add SDRAM 1 - BANK 1

COSEBE_0-1718065782758.png

When I debug this project, after HAL_SDRAM_Init function in MX_FMC_Init(), I can wath the memory in MEMORY BROWSER at address 0x60000000.

But on reference manual, SDRAM should be at 0xC0000000.

COSEBE_2-1718066108988.png

I select Default mapping in Bank Mapping :

COSEBE_3-1718066173657.png

 

If I select bank swapped, I have my datas at 0xC0000000.

Is it a bug of STM32CubeIDE ?

 

 

12 REPLIES 12

Ok, for the non-psychic can your perhaps identify files, directories and lines?

BANK2, unless remapped should be at 0xD0000000

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
COSEBE
Senior

On example project you mentioned :

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H743I-EVAL/Examples/FMC/FMC_SDRAM

Without modify anything, in the main file, juste after 

if(HAL_SDRAM_Init(&hsdram, &SDRAM_Timing) != HAL_OK) ==> line 118

I can access at address 0x60000000 instead of 0xD0000000 on memory window of STM32CubeIde 1.15.1

0x60000000 have data

0xD0000000 still have ????????? on memory

Isn't 0x60000000 the NOR FLASH on the STM32H743I-EVAL board?

What about after it's finished SDRAM_Initialization_Sequence() ??

https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Projects/STM32H743I-EVAL/Examples/FMC/FMC_SDRAM/Src/main.c#L125

or 

https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Projects/STM32H743I-EVAL/Examples/FMC/FMC_SDRAM/Src/system_stm32h7xx.c#L367

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..