I’ve had a stuppid idea to put Reboot() method just after the board starts. The result is that the board resets itself every few seconds. I tried use DeFuse to erase the Cerb40 but unfortunately I got a message in device manager that the device can not start and yellow trinagle is showing. The MF Deploy sees the Cerb40 but it disappears very fast and can not do anything.
Do you have any idea how I can fix the problem? Or maybe my Cerb40 is a junk now
P.S.
I have STM32F4 Discovery board as well. Is it possible to use the SWD to erase the Cerb40?
If you boot it into the bootloader mode I dont think it runs any code. Then you can erase it in DFuse, then re flash the firmware and you should be back to a good status.
I reinstalled DFuse utility, changed USB port and still message device is not recognition. installed the DFuse on other PC and the same results. The Windows can not recognise the device.
I also tried to use STM32 ST-Link with SWD programmer. When I try to erase the chip, I get the message the the memory is protected and can not be erased or modified.