2016-11-14 01:38 AM
Hi All,
I have a custom hardware dev board which includes an SDRAM (AS4C16M16SA), NOR Flash (S29GL128S) and a STM32F429. The schematic for this board is identical to other commercial dev boards that have the same memory configuration.I am attempting to access the SDRAM through the FMC on the F4. The chip select for the NOR Flash is permanently disabled (set the GPIO pin high).I have setup a project in IAR 7.8 using the ST example (from Cube) as a base. I have adjusted the timing to match the SDRAM in use although it was almost exactly the same as the example. I am debugging using an ST Link probe.I am able to repeatedly read/write single values to/from the SDRAM (8/16/32 bits) using the ST library function HAL_SDRAM_Write() - happy days. However when I try and write more than one value sequentially using the HAL_SDRAM_Write() function the micro locks up. I have run the code without the debug probe attached and the result is the same.Has anyone else seen this behaviour? Any ideas?Thanks in advance.2016-11-17 05:20 AM
Hello,
Maybe you should have a look to the Errata Sheet to check if you have the same limitations.Regards2016-11-17 10:33 PM
If you generate the initialisation code of the SDRAM controller of the STM32 with CubeMX, do not forget to add the code to configure the initialisation of the SDRAM controller inside of the SDRAM chip. It is not done automatically. Compare the CubeMX generated code with the BSP of an eval-/disco board to see the difference.
Best regards, Markus.