itead / Sonoff_Zigbee_Dongle_Firmware

199 stars 22 forks source link

Damaged bootloader (gecko) #4

Open maciekb opened 2 years ago

maciekb commented 2 years ago

During the programming of the device, the bootloader was probably damaged. The device is recognized correctly in the system, but the bootloader does not present itself, and it is currently impossible to program with standard tools. Is it possible to program the bootloader using GPIO pins?

darkxst commented 2 years ago

If you flashed the router firmware then auto-BSL (software activation of bootloader) no longer works and you need to use the physical boot button to activate Gecko.

Hedda commented 1 year ago

Is it possible to program the bootloader using GPIO pins?

I believe it should is also possible to recover a Silicon Labs EFR32 based adapters with a bricked bootloader by flashing via the JTAG (or cJTAG?) interface via Silabs Simplicity Commander by using a compatible JTAG debug probe programmer / flasher via the TCK, TMS, RESET, and GND pads on the board, (as well as 3V / 3-Volt for power but be sure not to connect to USB at the same time), using for example the SEGGER J-Link (jlink) Debug Probes such as their "J-Link EDU Mini" https://wiki.segger.com/Debug_Probes_-_J-Link_%26_J-Trace

The debug header on ZBDongle-E look to only expose TMS/TCK as debug interface and not TDI/TDO (which is usually also needed for npormal JTAG) so as such a c/JTAG (cJTAG IEEE 1149.7) compatible debug adapter is needed instead of a common JTAG probe? -> https://electrolama.com/radio-docs/advanced/flash-jtag/

https://jethome.ru/wiki/howto/instrukciya-po-proshivke-mikrokontrollerov-efr32mg21/

https://www.silabs.com/developers/mcu-programming-options

https://www.silabs.com/documents/public/application-notes/AN136-production-programming-options.pdf

https://www.silabs.com/documents/public/application-notes/an105.pdf

image

alienatedsec commented 1 year ago

What are you calling a damaged bootloader?

I see the below and I am not sure where is the problem

image

no matter what is pressed

image

Any ideas or other tools to recommend? Please SecureCRT seems to be a no-go.

alienatedsec commented 1 year ago

Messed about and found the right settings - speed was at 9600 instead of 115200:

image

image