I'd suggest checking if the external RAM is properly initialized and if the memory regions are correctly configured in your linker script. Also, make sure the cache settings are appropriate for the external RAM. You might want to use the STM32's buil...