SWDIO No target connected

I'm using a stm32f407vg board. Suddenly I can't download my code to flash memory. It gives me this error " Debugger - Cortex-M error: no target connected". In options for target > Debug > Settings in SW Device tab I see " SWDIO: Error No target connected".

How can I solve this?