2022-12-16 08:35 AM
I am working on STM32H745BIT6 with W9812G6KH-6 SDRAM 16bit data bus.
I have initialised the SDRAM and HAL driver seems to be returning HAL_OK so seems it is initialised properly.
I write incremental data and read back. Observed some of the data not getting written correctly. Please see attached memory snapshot.
It seems more of a Hardware issue than software.
Can you please point me in the right direction.
Attached the memory snapshot and main test file
Thanks
Anuj
2022-12-16 09:36 AM
Look critically at all the initialization, timings and pin configuration. None shown in code shown here.
Review the memory IC data sheet for timing, and computations of parameters for STM32 side controller configuration.
Review the hardware design/implementation.
See if there is any recurrent pattern to the failure.
Pay particular attention to D8..D15 paths.
2022-12-19 02:40 AM
I rechecked the timings multiple times. seems correct.
I figured if I write 4 bytes at a time and read 4 bytes at a time it works as expected.
But when I try to write byte by byte and read byte by byte I get the issue as described earlier.
I guess as SDRAM is 16bit it should be addressed in 16bit or 32bit at a time. Is this correct or am I missing something.
Thanks
Anuj