i have tried placing SDRAM as data memory instead of internal RAM.But my code is getting into hardfault.what could be the reason??
I have attached the modified startup file and system_stm32f4xx.c,startup_stm32f439xx.s.
Hi Immanuel Raja ,
I recommend you to start from ready example under the STM32F4 cube firmware package,
The example scenario provides the procedure to follow to use the external SDRAM as data memory.
I hope you verified you don't try to access the SDRAM before initializing it.
And have you checked / debugged that the SDRAM access works at all, at the assumed addresses ?
I have tried as per the STM32Cube_FW_F4_V1.16.0\Projects\STM324x9I_EVAL\Examples\FMC\FMC_SDRAM_DataMemory
I have replaced the same startup file and system_stm32fxxx.c and changed compiler settings as per that exaple.Eventhough the issue persist.
Retrieving data ...