Skip to main content
GenuineDeveloper
Associate III
Jul 27, 2018 7:26 AM UTC
Question

How to recover bricked STM32F051R8T6(STM32F0 discovery)?

My device is STM32F051R8T6, the same used in STM32F0 discovery board.

I was tweaking with the clock configuration section to try different clock configurations like HSI and HSE, etc. I could erase, flash and verify the program successfully, however the output doesn't seem to work as expected. So, i tried a simple GPIO pin toggle in program and flashed it successfully to the chip, still the output didn't change/work at all. I flashed the same program into my stm32f0 discovery board and the output worked fine. What might have happened to the STM32F051R8 chip? I guess I might have bricked the device, because of the clock tweaks.

How do I resolve this issue? How do I prevent this from happening in the future.

Any valid inputs will be of great help.

Thanks.

    This topic has been closed for replies.

    4 replies

    GenuineDeveloper
    Associate III
    Jul 27, 2018 9:41 AM UTC

    A quick update!

    The program works fine when in debug mode. But as soon as I stop the debugger, the program stops executing. What could be the problem?

    T J
    Senior III
    Jul 27, 2018 12:30 PM UTC

    is Boot0 low or High ?

    I tie it low with 10K, to always boot from user flash

    T J
    Senior III
    Jul 27, 2018 12:33 PM UTC

    in Visual studio, if I stop debugging, the Processor is locked at stop or break, I guess.

    I have to power off to release the SWD, then the board reboots from user flash when the power is reapplied.

    GenuineDeveloper
    Associate III
    Jul 28, 2018 4:59 AM UTC

    Yes, the BOOT0 pin is pulled low with 10K resistor. I was tweaking the clock configuration, I read somewhere that it can brick the device. Now, does it have anything to do with flash bootloader concept?