2025-12-15 11:21 AM
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?