2017-01-17 07:19 PM
I am tring to figure out how to use the BSP for my stm32f746G-Disco board. I have worked through several issues from setting the STM32CubeMX and getting the files in the correct place. I have run into the problem that I can't find the definition for FMC_SDRAM_CommandTypeDef and SDRAM_HandleTypeDef. in the file stm32746g_discovery_sdram.h. I don't know why, but I think it is because an option is not enabled in the STM32CubeMX but I cannot find an option that has something to do with SDRAM. I did fix a similar issue with the UART driver by adding a component to the hardware. Has anyone else experienced this, know how to resolve it, have any suggestions for how to resolve it.
2017-01-17 07:42 PM
stm32f7xx_hal_conf.h
#define HAL_SDRAM_MODULE_ENABLED
Pulls
\STM32Cube_FW_F7_V1.3.0\Drivers\STM32F7xx_HAL_Driver\Inc\stm32f7xx_hal_sdram.h
2017-01-17 07:45 PM
I used these successfully ;
________________ Attachments : stm32f7xx_hal_sdram.h.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyzE&d=%2Fa%2F0X0000000bEv%2FudYWZb2dO_I3XIimFbNpvlad.rwufYDVl1t420XN4Q4&asPdf=falsestm32f7xx_hal_sdram.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HymC&d=%2Fa%2F0X0000000bEw%2FR9X.qoTaJYXoZg6gxhRIPZMIZG2EGJdCmVt5VYKDxs8&asPdf=false2017-01-17 08:53 PM
,
,
It fails because it can't find , ♯ include 'stm32f7xx_hal_sdram.h' ,Seems like I don't have something setup correctly. ,I can see the file you references in the BSP driver section, but not the stm32f7xx sdram file.
2017-01-17 09:06 PM
I am reextracting the archive, maybe it got messed up for some reason.
2017-01-17 09:11 PM
Include Paths? Defines?
USE_HAL_DRIVER,STM32F746xx,USE_STM32746G_DISCO
2017-01-17 09:19 PM
The file
stm32f7xx_hal_sdram.h does not exist and seems like it needs to be generated by STM32CubeMX. I had this exact problem with the uart and I solved it by enabling the uart in the STM32CubeMX proogram. I just can't see what option to enable to get this generated. I will check again to see that I have the correct board setup in the cubeMX.
I re-extracted the STM32Cube_FW_F7_V1.4.0 and this directory does not have the missing file in it.
2017-01-18 02:06 AM
Hi
Madigan.Ray
,To Have sdram driver added to your generated project, you need to configure the FMC in the pinout view and then select the good settings to use SDRAM.
Please try this way and let me know if you still have issue.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.