STM32F7 why this attach is not working?

If you want to use a separate MCU (use st-link to Burn), do you have to change some configurations

When you’d like to program a separate MCU (not installed on a NUCLEO or DISCO board) then you have these options.

The configuration depends on whether the custom board hardware design matches the reference NUCLEO/DISCO board design. For example, If the custom board is equipped an external crystal and the reference design isn’t then you shall create a custom target (for example like this).