cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7, FMC_SDRAM_DataMemory Example Issue

THIHA KYAW
Associate III

Hi,

I tested FMC_SDRAM_DataMemory Example of STM32F769I_EVAL.

I found out that the data written to SDRAM is not correct.

See below picture for your checking. I believe HAL and FMC driver in system_stm32f7xx.c is not correct. Please advise me how to make it correct. Thanks.

0690X000006CUwIQAW.png

Regards,

Thiha Kyaw

1 ACCEPTED SOLUTION

Accepted Solutions
THIHA KYAW
Associate III

Just modify below and work for me.

/* Configure and enable SDRAM bank1 */

 FMC_Bank5_6->SDCR[0] = 0x00001964; //0x000019E5;

 FMC_Bank5_6->SDTR[0] = 0x01116461; //0x01116361

View solution in original post

4 REPLIES 4
THIHA KYAW
Associate III

Please help me...

I'd probably have the "Memory 1" window dump 0xC0000000 as 32-bit unsigned words. If everything has bit 8 set, I would look at the schematic critically and make sure no other use for D8 is specified or jumpered on the board.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

Dear Clive,

Do you mean PD8?

In the example, SDRAM is initialized in system_stm32f7xx.c.

How can I modify it?

Thank.

Regards,

Thiha Kyaw

THIHA KYAW
Associate III

Just modify below and work for me.

/* Configure and enable SDRAM bank1 */

 FMC_Bank5_6->SDCR[0] = 0x00001964; //0x000019E5;

 FMC_Bank5_6->SDTR[0] = 0x01116461; //0x01116361