Solved
STM32F767ZI FMC LCD initialization is failing and calling MemManage_Handler()
- December 15, 2025
- 1 reply
- 117 views
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code and a linker script content. Please read this post: How to insert source code.
Hello,
I'm trying to use an LCD with ILI9341 chip. I've connected all pins to the LCD and I've set in CubeMX the FMC like this:

But when I tried to run the program, all calls from main.c is calling MX_FMC_Init(); then is going in this function:
HAL_StatusTypeDef FMC_NORSRAM_Init(FMC_NORSRAM_TypeDef *Device,
const FMC_NORSRAM_InitTypeDef *Init)
{
..
__FMC_NORSRAM_DISABLE(Device, Init->NSBank);
..
And soon this macro is executed function MemManage_Handler() is called:
/**
* @brief This function handles Memory management fault.
*/
void MemManage_Handler(void)
{
/* USER CODE BEGIN MemoryManagement_IRQn 0 */
SerialPrint("MemManager_Handler fault..");
/* USER CODE END MemoryManagement_IRQn 0 */
while (1)
{
/* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */
/* USER CODE END W1_MemoryManagement_IRQn 0 */
}
}
And I can't go over this error. I don't understand what is wrong with the FMC configuration.
Can somebody give me a help?
