cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747i-Disco Memory Map

SLimi.1
Associate III

I am trying to get a clear understanding of the memory map for this board. I want to the know the address locations of the SDRAM and both QSPI flash devices. The board user manual says SDRAM is in Bank 1, which RM0399 says is 0xC000000, but when examples show that 0xD0000000 is the location of the SDRAM. When I run a variation of an example to access the LCD 0XD000 0000 is the correct location as 0xC000 0000 hit a hardware fault. 

Is there an updated table or documentation stating the full memory map for this board?

 

1 ACCEPTED SOLUTION

Accepted Solutions

The RM0399 deals with the capabilities of the CHIP

The User Manual and Schematics for the STM32H747I-DISCO will address the BOARD

Manual Says SDRAM Bank1

https://www.st.com/resource/en/user_manual/um2411-discovery-kit-with-stm32h747xi-mcu-stmicroelectronics.pdf

Code / BSP Says Bank 2, Schematic uses PH6 FMC_SDNE1 (BANK2)  where as FMC_SDNE0 (BANK1)

https://www.st.com/resource/en/schematic_pack/mb1248-h747i-d03-schematic.pdf

https://www.st.com/resource/en/datasheet/stm32h747xi.pdf

So the naming is not consistent, and confusing.  The BOARD uses BANK2 at 0xD0000000

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

View solution in original post

7 REPLIES 7
Issamos
Lead II

Hello @SLimi.1 

This is the last updated Memory map and default device memory area attributes (you can find it in the RM0399 Rev 4 updated on 25/06/2023):

Screenshot_2023-09-13-23-03-36-24_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

Screenshot_2023-09-13-23-04-02-89_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

Screenshot_2023-09-13-23-04-28-40_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

Best regards.

II

@Issamos thanks for the reply

This information is clear, but what is the actual physical memory map for the STM32H747i-Disco board itself? Is the SDRAM in Bank 1 or Bank 2? Documentation says Bank1, but it reality it is in Bank 2. And is there anything in Bank1?

SDRAM is devided into 2 part bank1 and bank2. You can use 1 of them or both depending on your application. For more information use RM0399 part 23.9. 

Best regards.

II

The RM0399 deals with the capabilities of the CHIP

The User Manual and Schematics for the STM32H747I-DISCO will address the BOARD

Manual Says SDRAM Bank1

https://www.st.com/resource/en/user_manual/um2411-discovery-kit-with-stm32h747xi-mcu-stmicroelectronics.pdf

Code / BSP Says Bank 2, Schematic uses PH6 FMC_SDNE1 (BANK2)  where as FMC_SDNE0 (BANK1)

https://www.st.com/resource/en/schematic_pack/mb1248-h747i-d03-schematic.pdf

https://www.st.com/resource/en/datasheet/stm32h747xi.pdf

So the naming is not consistent, and confusing.  The BOARD uses BANK2 at 0xD0000000

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

@Tesla DeLorean 

Thank you. That clarifies what I am seeing. To add to the confusion, the LCD driver calls out 0xC0000000 for the frame buffer. It appears things are not consistent. 

This shows 0xD0000000

STM32Cube_FW_H7_V1.11.0\Projects\STM32H747I-DISCO\Applications\STemWin\STemWin_HelloWorld\Common\Inc\stm32h747i_discovery_conf.h

Quick grep of the Projects\STM32H747I-DISCO and related BSP doesn't show any 0xC0000000 references

If you can cite some specific cases I'll escalate this to support staff.

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

@Tesla DeLorean My mistake, it was a conf.h file. The stm32h747i_discovery_conf_template.h file shows

#define LCD_LAYER_0_ADDRESS 0xC0000000U
#define LCD_LAYER_1_ADDRESS 0xC0200000U

STM32CubeH7/Drivers/BSP/STM32H747I-DISCO/stm32h747i_discovery_conf_template.h at master · STMicroelectronics/STM32CubeH7 · GitHub

This is what caused the confusion. A table in the board user manual would go a long way to seeing what is where for the board.