Author Topic: I have bricked two boards. Is there a way to revive them?  (Read 3667 times)

0 Members and 1 Guest are viewing this topic.

Offline Blitzschnitzel

  • Thread Starter
  • Posts: 103
I have bricked two boards. Is there a way to revive them?
« on: Tue, 03 March 2020, 16:53:11 »
Hi, I am developing a new board and, in the process, I have managed to brick two prototypes. Both boards worked well but broke while flashing a new firmware. I don’t know if that is the reason it broke, but for the first one I hit the reset button and pressed Flash before the reset was all done. For the second one I pressed reset and only then started the QMK Toolbox and flashed it. Windows now says “USB-device was not recognized” when I plug the board in. The strange thing is that I can still reset and flash the boards. But that doesn’t change that the boards are not responsive. The backlighting still works but I can’t toggle it on or off or change the brightness. So, I think the MCU is stuck and it is not just a communication problem.
Would perhaps flashing a new dfu bootloader help? I have never done that before. The construction uses a 32u4 and is pretty standard, so I would be surprised if it were a hardware issue. But if needed I could upload a schematic.

Offline nevin

  • Posts: 1646
  • Location: US
Re: I have bricked two boards. Is there a way to revive them?
« Reply #1 on: Tue, 03 March 2020, 16:58:00 »
not actually bricked if you can still flash them.
something a miss in the firmware?
leds drawing too much current?

send us what you got layout & firmware wise and i'm sure some others along with me will chime in. just need a little more detail of the build.
- controller, pins, layout, firmware, #of leds, etc...
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline Blitzschnitzel

  • Thread Starter
  • Posts: 103
Re: I have bricked two boards. Is there a way to revive them?
« Reply #2 on: Tue, 03 March 2020, 17:17:29 »
THX. So, I’ve just used my USB amp meter and the board draws 433mA and my motherboard seems to be very forgiving with out of spec current draws. The backlight is stuck at full brightness but the RGB backlight is off so I don't know how much current it draws. The schematic and firmware are linked below.
« Last Edit: Tue, 03 March 2020, 17:25:19 by Blitzschnitzel »

Offline nevin

  • Posts: 1646
  • Location: US
Re: I have bricked two boards. Is there a way to revive them?
« Reply #3 on: Tue, 03 March 2020, 17:25:44 »
most usb won't let more than 500ma unless it's charging via usb3 or QC 2.0, QC 3.0

can you upload a ZIP of your firmware folder or your git clone?
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline nevin

  • Posts: 1646
  • Location: US
Re: I have bricked two boards. Is there a way to revive them?
« Reply #4 on: Tue, 03 March 2020, 17:26:44 »
thanks
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline Blitzschnitzel

  • Thread Starter
  • Posts: 103
Re: I have bricked two boards. Is there a way to revive them?
« Reply #5 on: Tue, 03 March 2020, 17:27:45 »
Just did it while you were typing. ;)

Offline nevin

  • Posts: 1646
  • Location: US
Re: I have bricked two boards. Is there a way to revive them?
« Reply #6 on: Tue, 03 March 2020, 17:34:32 »
yep. saw that.
is it based off of another firmware or from scratch?
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline Blitzschnitzel

  • Thread Starter
  • Posts: 103
Re: I have bricked two boards. Is there a way to revive them?
« Reply #7 on: Tue, 03 March 2020, 17:37:11 »
I copy pasted a few bits here and there but it is mostly written from scratch. I think in both cases the last edits were made to the Keymap before it stoped working. The only thing not so standard is the 7 segment display, but the driver IC is passive and I would be surprised if that were the problem.
« Last Edit: Tue, 03 March 2020, 19:13:07 by Blitzschnitzel »

Offline gipetto

  • Posts: 91
Re: I have bricked two boards. Is there a way to revive them?
« Reply #8 on: Wed, 04 March 2020, 16:09:51 »
sounds like it is a software crash. i've heard the term bootloop thrown around a lot too, not quite sure what it means. I managed to recover a teensy2.0++ by combining the bootloader and firmware in the same file and flashing it over isp. this gets around the crash issue when regular usb flashing won't.

Offline supermario802.1

  • Posts: 31
    • tinkerBOY
Re: I have bricked two boards. Is there a way to revive them?
« Reply #9 on: Wed, 04 March 2020, 17:53:19 »
THX. So, I’ve just used my USB amp meter and the board draws 433mA and my motherboard seems to be very forgiving with out of spec current draws. The backlight is stuck at full brightness but the RGB backlight is off so I don't know how much current it draws. The schematic and firmware are linked below.

That’s almost the current allowed in a USB 2.0. Becareful you might damage the usb controller inside your computer.

Offline Blitzschnitzel

  • Thread Starter
  • Posts: 103
Re: I have bricked two boards. Is there a way to revive them?
« Reply #10 on: Thu, 05 March 2020, 01:57:20 »
sounds like it is a software crash. i've heard the term bootloop thrown around a lot too, not quite sure what it means. I managed to recover a teensy2.0++ by combining the bootloader and firmware in the same file and flashing it over isp. this gets around the crash issue when regular usb flashing won't.
Yeah that might be it! Is there a tutorial that you followed? Or do you know a search term on how to compine the DFU hex and your firmware into one file?

That’s almost the current allowed in a USB 2.0. Becareful you might damage the usb controller inside your computer.
Well, I only have USB3 ports so I should be good. Also, evey name brand manufacturer will include a overcurrent protection in their USB ports, so that the worst that can happen ist that the mainboard cuts the power to your keyboard.

Offline Leslieann

  • * Elevated Elder
  • Posts: 4519
Re: I have bricked two boards. Is there a way to revive them?
« Reply #11 on: Thu, 05 March 2020, 04:33:19 »
Well, I only have USB3 ports so I should be good. Also, evey name brand manufacturer will include a overcurrent protection in their USB ports, so that the worst that can happen ist that the mainboard cuts the power to your keyboard.

They do, but it relies on the cable, not the port and you shouldn't rely on it.

That's exactly the problem with Type A to Type C cables, it draws so much power through the type A port that it overheats and melts the connector, usually between 2.4 and 2.7 amps.

Windows can detect it on 2.0 connections sometimes but only if you are plugged in direct, not through a port and even then, don't count on it. Apple has had problems with it, Google has had problems with it... Look up Benson Leung if you want to find more horror stories and words of warning, he's the Google engineer who had one melt and started investigating which cables were dangerous.
Novelkeys NK65AE w/62g Zilents/39g springs
More
62g Zilents/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 magnetic cable, pic
| Filco MJ2 L.E. Vortex Case, Jailhouse Blues, heavily customized
More
Vortex case squared up/blasted finish removed/custom feet/paint/winkey blockoff plate, HID Liberator, stainless steel universal plate, 3d printed adapters, Type C, Netdot Gen10 magnetic cable, foam sound dampened, HK Gaming Thick PBT caps (o-ringed), Cherry Jailhouse Blues w/lubed/clipped Cherry light springs, 40g actuation
| GMMK TKL
More
w/ Kailh Purple Pros/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 Magnetic cable
| PF65 3d printed 65% w/LCD and hot swap
More
Box Jades, Interchangeable trim, mini lcd, QMK, underglow, HK Gaming Thick PBT caps, O-rings, Netdot Gen10 magnetic cable, in progress link
| Magicforce 68
More
MF68 pcb, Outemu Blues, in progress
| YMDK75 Jail Housed Gateron Blues
More
J-spacers, YMDK Thick PBT, O-rings, SIP sockets
| KBT Race S L.E.
More
Ergo Clears, custom WASD caps
| Das Pro
More
Costar model with browns
| GH60
More
Cherry Blacks, custom 3d printed case
| Logitech Illumininated | IBM Model M (x2)
Definitive Omron Guide. | 3d printed Keyboard FAQ/Discussion

Offline marhalloweenvt

  • Posts: 20
  • Location: Viet Nam
Re: I have bricked two boards. Is there a way to revive them?
« Reply #12 on: Thu, 05 March 2020, 04:46:30 »

Yeah that might be it! Is there a tutorial that you followed? Or do you know a search term on how to compile the DFU hex and your firmware into one file?


If you use QMK, when you compile, you just need to add :production at the end of your command.
Example:
Code: [Select]
make handwired/colorlice:default:production
This will compile a normal hex file, as well as _bootloader and _production hex files. The _production hex will be what you want. This contains the bootloader and the firmware, so you only nedd to flash once. (rather than flash the bootloader, and THEN flash the firmware).

Time to hook up your ISP Flasher, and do the magic trick.

Offline gipetto

  • Posts: 91
Re: I have bricked two boards. Is there a way to revive them?
« Reply #13 on: Thu, 05 March 2020, 05:36:57 »
I followed this guide, using a teensy2.0 to flash https://beta.docs.qmk.fm/for-makers-and-modders/isp_flashing_guide