Still, the initialization code for the SDRAM is chip-dependent, so I had to add the proper initialization code. This can be found in the BSP (board support package) drivers for the STM32H745i-DISCO.
Here's an article on how to import the BSP into an existing project:
https://community.st.com/t5/stm32-mcus/how-to-add-a-bsp-to-an-stm32cubeide-project/ta-p/49812
Essentially, create a new project for the board that you are using, and import the files from the BSP folder. In this case, the files for the sd_ram and its specific component (MT48LC4M32B2). Once you add your files to your sources and include path, you can add the call to the initialization.
At the end of the MX_FMC_Init function, call the initialization function for the specific SDRAM:
/* USER CODE BEGIN FMC_Init 2 */
if (BSP_SDRAM_Init(0) != BSP_ERROR_NONE)
{
Error_Handler();
}
/* USER CODE END FMC_Init 2 */