keyboardio / Chrysalis

Graphical configurator for Kaleidoscope-powered keyboards
https://github.com/keyboardio/Chrysalis#chrysalis
GNU General Public License v3.0
493 stars 65 forks source link

Firmware update failed #1304

Closed EmeraJade closed 7 months ago

EmeraJade commented 11 months ago

Describe the bug I tried to flash the newest firmware update and got a warning message that it'll have to reset to factory settings. I quickly saved my settings, then continued; which then gave me this error:

Problem encountered while flashing Unable to find the kevboard. Please file an issue.

Now the keyboard cannot be found anymore and does not work at all 😭 Chrysalis itself also cannot exit that warning message, unless I quit it fully.

To Reproduce Steps to reproduce the behavior:

  1. Go to Firmware update
  2. Followed Instructions
  3. Error appears

Expected behavior Usually the firmware updates went over smoothly and without errors. I expected the same to happen as always.

Screenshots If applicable, add screenshots to help explain your problem. If possible, please also include the debug bundle you can create on the "Report a problem" screen. If, for some reason, you are unable to access that screen, please press Control + Shift + I (Windows or Linux) or Command + Option + I (macOS) to bring up the developer console. Right-clicking inside it will allow you to save its contents to a file - please attach that to the bug report. Screenshot 2023-08-27 at 11 16 02 Screenshot_2023-08-27_at_11 07 51

Bug report: chrysalis-debug.json2.txt

Desktop (please complete the following information):

Additional context It's been a while since I updated the firmware, if that matters. Please help :((

EmeraJade commented 11 months ago

Okay, I managed to get the keyboard working again! I had to flash it via chrome. But still, even after a factory reset, the firmware update will not work. I also had to completely recreate my layout settings, and every time i try to export them somehow (both as json or just as layout card PDF) it will fuck it up??? I just quit Chrysalis for now and won't touch it anymore, but something is very wrong still.

obra commented 11 months ago

Notes from our debugging session yesterday:

It appears that flashing to a recent (0.9.1 or 0.9.2) firmware build, whether by Chrysalis or by the WebDFU updater resulted in a soft-bricked keyboard. The firmware itself wouldn't boot, although the bootloader remained functional.

@EmeraJade is going to be out of town for a bit, but we're going to try some further debugging techniques when they're back.

On Sun, Aug 27, 2023 at 3:48 AM EmeraJade @.***> wrote:

Okay, I managed to get the keyboard working again! I had to flash it via chrome. But still, even after a factory reset, the firmware update will not work. I also had to completely recreate my layout settings, and every time i try to export them somehow (both as json or just as layout card PDF) it will fuck it up??? I just quit Chrysalis for now and won't touch it anymore, but something is very wrong still.

— Reply to this email directly, view it on GitHub https://github.com/keyboardio/chrysalis/issues/1304#issuecomment-1694633819, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALC2G7TOXRNB7S7TXB2MLXXMQXDANCNFSM6AAAAAA4AF7MOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

merlindru commented 11 months ago
image

I'm getting a similar issue, I think, but in some cases chrysalis just goes completely white after the "Reconnecting" step. My keyboard is soft-bricked as well now. When I hold down the prog key, it goes red before flashing -- before, it was green

Update: With 0.12.0 I was able to flash my Model 100 successfully!

rafftre commented 11 months ago

EmeraJade

I've the same problem under macOS Ventura 13.5 with Chrysalis 0.12.0. My Atreus keyboard seems soft-bricked now.

merlindru commented 11 months ago

What if you try flashing it through chrysalis.keyboard.io? @rafftre

merlindru commented 11 months ago

And I was advised to turn on debug logs and post them in a new issue

rafftre commented 11 months ago

I didn't understand why, but under macOS I could no longer connect the keyboard. I couldn't even see the serial port anymore (for trying with Kaleidoscope or Arduino IDE). Later I switched to a Windows machine where the keyboard was detected successfully from both the system and Chrysalis. I haven't tried updating the firmware again though, so I'm keeping it that way for now 😃 After this the keyboard is working as before under macOS.

I apologize if this I introduced some overhead on this issue

obra commented 7 months ago

It's taken a while, but I believe we've finally figured out what was going wrong. The recent Chrysalis 0.13.3 and Kaleidoscope 0.92 firmware versions -should- fix it. If they don't, I'd love to know.