Skip to main content
Diogo Ferreira
Associate
August 16, 2022
Solved

How do I re-program the STM32G0B1RET6 after I've done a "Full chip erase" in CubeProgrammer?

  • August 16, 2022
  • 3 replies
  • 1897 views

Hello i have a SKR board and the MCU was faulty. I swap the chip and tried to conect via SWD on CubeProgrammer but no success after i have can connect via usb but when i as to program by my mistake i erase full chip and after cannot conect again.

Is there some way to conect the chip or is broke?

This topic has been closed for replies.
Best answer by Piranha

https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/tree/master/hardware/BTT%20SKR%20MINI%20E3%20V3.0/Hardware

Pull up BOOT0 (SWCLK) to VDD and connect in USB DFU mode.

By the way, looking at that schematics...

  1. NRST has a 4,7k pull-up resistor - degrading.
  2. SWDIO/SWCLK have a 10k pull-up/down resistors respectively - useless.
  3. Crystal has a 1M resistor in parallel - degrading.
  4. USB_P/N lines have a 27R resistors in series - degrading.
  5. TMC2209 UART signals are connected directly, but should have a 1k series resistor for each driver instead of a single one for MCU - dangerous.
  6. TMC2209 UART on MCU side is implemented with Tx and Rx pins instead of a single half-duplex pin - wastes pin.

3 replies

Tesla DeLorean
Guru
August 16, 2022

>>Is there some way to connect the chip or is broke?

No idea, not my board, got a schematic?

The ST-LINK would likely need VCC-TARGET, GND, SWDIO, SWCLK and NRST.

Try Connect Under Reset options

Try Slower SWD clock speeds for CM0(+) parts

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
August 16, 2022

If BOOT0 pin is pulled HIGH, can it connect to PC via USB as "STM32 BOOT DEVICE" type of thing? If so FW could perhaps be pushed by USB/DFU mode in STM32 Cube Programmer.

Talk to the Vendor, Read ALL the instructions.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Piranha
PiranhaBest answer
Principal III
August 16, 2022

https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/tree/master/hardware/BTT%20SKR%20MINI%20E3%20V3.0/Hardware

Pull up BOOT0 (SWCLK) to VDD and connect in USB DFU mode.

By the way, looking at that schematics...

  1. NRST has a 4,7k pull-up resistor - degrading.
  2. SWDIO/SWCLK have a 10k pull-up/down resistors respectively - useless.
  3. Crystal has a 1M resistor in parallel - degrading.
  4. USB_P/N lines have a 27R resistors in series - degrading.
  5. TMC2209 UART signals are connected directly, but should have a 1k series resistor for each driver instead of a single one for MCU - dangerous.
  6. TMC2209 UART on MCU side is implemented with Tx and Rx pins instead of a single half-duplex pin - wastes pin.

Diogo Ferreira
Associate
August 18, 2022

Tanks for the help

I have can write the chip again.