cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SDRAM as Data Memory??

Immanuel Raja
Associate
Posted on May 10, 2017 at 07:09

Hi guys,

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.

3 REPLIES 3
Nesrine M_O
Lead II
Posted on May 10, 2017 at 10:39

Hi

raja.immanuel

,

I recommend you to start from ready example under the STM32F4 cube firmware package,

STM32Cube_FW_F4_V1.0\Projects\STM324x9I_EVAL\Examples\FMC\FMC_SDRAM_DataMemory

The example scenario provides the procedure to follow to use the external SDRAM as data memory.

-Nesrine-

AvaTar
Lead
Posted on May 10, 2017 at 10:50

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 ?

Posted on May 10, 2017 at 11:04

Dear Avatar,

I have tried as per the STM32Cube_FW_F4_V1.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.

Regards,

Immanuel Raja

________________

Attachments :

84C10FE7E3FD49D2A0A577B5B549760E.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hyg2&d=%2Fa%2F0X0000000bAn%2FF16BmTHlv0ioN9Modgkxk1EiWbaxyxyVy1Bygr7hhW0&asPdf=false