2023-09-13 12:17 PM
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?
Solved! Go to Solution.
2023-09-13 05:42 PM
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
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
2023-09-13 03:11 PM - edited 2023-09-13 03:13 PM
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):
Best regards.
II
2023-09-13 03:53 PM
@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?
2023-09-13 04:14 PM
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
2023-09-13 05:42 PM
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
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
2023-09-13 06:30 PM - edited 2023-09-13 06:30 PM
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.
2023-09-14 09:51 AM
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.
2023-09-14 01:17 PM - edited 2023-09-14 01:21 PM
@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
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.