I am using the HAL FSMC driver for SDRAM on STM32F746 without any issues. I assume that STM32F4 and STM32F7 share the same FMC hardware. For making it compile, I had to add some switches to the source files.
Normally, there is this statement here to allow compilation only for certain processors:
for use with STM32F7 family processors. I am not sure which processors of the F7 family can be used, as I can test only the STM32F746.
This affects the following files:
/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h
/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.c
/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h
/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c
Hello,
I am using the HAL FSMC driver for SDRAM on STM32F746 without any issues. I assume that STM32F4 and STM32F7 share the same FMC hardware. For making it compile, I had to add some switches to the source files.
Normally, there is this statement here to allow compilation only for certain processors:
Please change that to something like this or similar:
for use with STM32F7 family processors. I am not sure which processors of the F7 family can be used, as I can test only the STM32F746.
This affects the following files: /os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h /os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.c /os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h /os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c
Thank you, Adrian