2022-07-14 05:18 AM
2022-07-14 05:59 AM
The Discovery board?
That's not how you get to it, it is not Linux
There ae some examples of bringing up SDRAM in the CubeF7 Examples
STM32Cube_FW_F7_V1.9.0\Projects\STM32F769I-Discovery\Examples\BSP
STM32Cube_FW_F7_V1.9.0\Projects\STM32F769I-Discovery\Examples\FMC\FMC_SDRAM
STM32Cube_FW_F7_V1.9.0\Drivers\BSP\STM32F769I-Discovery\stm32f769i_discovery_sdram.c
2022-07-14 10:47 PM
Hi Tesla DeLorean,
Thanks for your reply.
Yes, stm32f769 Discovery board.
Is it possible to read and write data into SDRAM of Bank 1 or Bank 2[i.e 0XC0000000/0XD0000000]?
Can you please provide sample application to test the same, if it is available.
Thanks in Advance.
2022-07-15 02:51 AM
Hi,
I am using this stm32 board with Uclinux OS.
2022-07-15 05:04 AM
Sounds like hours of fun..
STM32Cube_FW_F7_V1.15.0\Drivers\BSP\STM32F769I-Discovery\stm32f769i_discovery_sdram.h
#define SDRAM_DEVICE_ADDR ((uint32_t)0xC0000000)
#define SDRAM_DEVICE_SIZE ((uint32_t)0x1000000) /* SDRAM device size in MBytes */
..
If you want to read/write the SDRAM I would suggests using uint32_t pointers, and walking test patterns across the memory to verify retention, size and address decode.