2021-06-10 06:53 AM
Hello,
I want to write and read from an external SDRAM using an STM32H743. I never did this project before and I did not find any example of project to help me.
Please can you point me to good example of project "SDRAM/FileSystem" ?
Thank you.
Solved! Go to Solution.
2021-06-10 06:58 AM
Here's an SDRAM example:
Filesystems are not typically used with SDRAM.
2021-06-10 06:58 AM
Here's an SDRAM example:
Filesystems are not typically used with SDRAM.
2021-06-10 07:02 AM
Please look for STM32H7 firmware package and check the following examples :
For SDRAM:
STM32Cube_FW_H7_V1.9.0\Projects\STM32H743I-EVAL\Examples\FMC
For FatFs File system :
STM32Cube_FW_H7_V1.9.0\Projects\STM32H743I-EVAL\Applications\FatFs
2021-06-11 05:41 AM
@TDK @Mike_ST
Thank you for answers !
I tried the exemple on the STMH7B3I_EVAL, on my STM32H743 ! But it's not working when i check the adress on SDRAM to see if the data was written or not i find nothing.
I literaly copied the same code from the exemple project of writing and reading with aTxBuffer/aRxBuffer buffers. I checked the Hal_MSP file where the project implements these functions :
-MX_FMC_Init function()
-HAL_SDRAM_MspInit()
-HAL_SDRAM_MspDeInit()
-HAL_FMC_MspInit()
-HAL_FMC_MspDeInit()
Everything seems to be right to me, the configuration of the pins is OK i checked the datasheet of the mcu.
In the main.h i changed the SDRAM_BANK_ADDR from ((uint32_t)0xD0000000) to ((uint32_t)0xC0000000) because i dont have the same SDRAM
I attached screens of the integrality of the functions and code of the project !
Thank you in advance for your help !
2021-06-11 05:43 AM
2021-06-11 05:46 AM
2021-06-11 08:03 AM
Hello,
Sending screenshots of your code is not convenient at all.
>> I tried the exemple on the STMH7B3I_EVAL
Why not from H743 EVAL ?
2021-06-15 05:53 AM
Hello Mr Mike,
I will send files for the next times its easy to copy past code from files for testing right !
The two FMC exemples are pretty much the same. But i understand why you wanted me to go on the same MCU i'm working with :)
After few changes on the code my application is working now i can write on the SDRAM and read from it what i wrote !
Thank you so much guys @Mike_ST @TDK