I've came across the same problem. Disabling DSI mode via "project_name.ioc", "stm32h7xx_hal_dsi.h" file is not included in project workspace but It seems compiler try to execute this line even DSI mode is not active.Then I realized there is a code ...