cancel
Showing results for 
Search instead for 
Did you mean: 

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

Diogo Ferreira
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Piranha
Chief II

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.

View solution in original post

4 REPLIES 4

>>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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Piranha
Chief II

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

Tanks for the help

I have can write the chip again.