User Activity

i have a an stm32f417vgt6 mcu and its connected with ft800 through 30 cm SPI cable and the ft800 is driving a tft lcd .. the problem is when the mcu turn on or turn off the Contactor the mcu halt .. can you please help me how to detect the prob...