try to erase and write to Flash on STM32F407. Get after a hardware reset always raised PGSERR PGPERR Error Flags.
After resetting the values, the mentioned Error Flags will be raised after passing the next code line. it seems that something raise it after each code line automaticly.
There are some users out there with the same issues like mine but their solutions couldn´t help me.
Could it be the Debugger?