cancel
Showing results for 
Search instead for 
Did you mean: 

Writting data to SRAM

NShar.19
Associate II

Hi, everyone. May be you have a sample project about how to write a data to SRAM for STM32F7 or simialar via FMC and HAL

3 REPLIES 3

SRAM connected to FMC?

FMC is part of the mcu's address space, so after configuring FMC for given memory you access it in the same way as internal memories. You can allocate variables on it (the exact method depends on your toolchain, usually this involves linker script or similar) and then you simply use those variables as usually.

The EVAL cathegory of devboards (and also some DISCO boards) do contain external memory connected through FMC, so review those together with the examples which come for them in Cube.

JW

NShar.19
Associate II

Yes, FMC is connected to SRAM. If you said that I must just allocate variables, that why in HAL present functions like HAL_SRAM_Write_16b and other like this. I just want to find a example for stm32 for working with SRAM, cause in internet found only SDRAM or smt like this.

For example, https://www.st.com/en/evaluation-tools/32f723ediscovery.html#cad-resources has a PSRAM, so you can look at its schematics and related examples.

JW