I would like to write FMC SDRAM initialisation sequence so that I can put a frame buffer into SDRAM. I need a buffer that can fit pixels for 480x272 RGB888, so 382KB in length. MCU has only 320K of internal RAM, but there's an external SDRAM with 8MB of addressable memory that currently just sits there doing nothing.
There is an STM32CubeIDE example with C implementation and I'm wondering is translating C code line-by-line, function-by-function a good approach ?