-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard Firmware Update Error #128
Comments
Same. Also, all my layers setup is gone. |
Same here.
|
Hello @BernardoRebelo, @Acrossfy, @gitetsu, @sos0 ! I'm Sorry to hear that you lost your layers, this can happen because of this reasons:
the fact is that there is a log file for the flashing process created at this locations in your computers:
There you will find a file named like: With that file in hand you can get the flashing log so i can know what happened, but you can also restore the layers you lost. So please, upload the files to this issue so i can troubleshoot what is happening during the flashing process and i will also restore your settings in a general backup file, so i can give them back to you to restore your layers! Lets get this solved! 😉 |
The file says for me (btw on OSX there is a
|
I'm in a similar situation. (including .json.json) |
@AlexDygma In my own case, I've had a successful firmware upgrade from 0.22 to 0.24, but the buttons in all my layers ended up as just Here is my backup file: https://gist.github.com/abernix/19a4060a59d1d155d7d499eb7c450d27#file-raise-backup-2020-11-20-14_15_22-json-json How might I convert this firmware upgrade log into a backup file that can be restored? It seems like it is something that is mappable, but it's not immediately clear what the steps are to do that. It looks like it requires merging some properties from different objects in the firmware update log JSON into a more complex object which matches the format of the backup file JSON. I started trying using |
Hello @abernix! Dont worry ill make the backup file for you (if you are curious, the easy way to do this is to run the commands with the dev console of bazecor, to open it press Ctr+Sift+i , then connect to your keyboard and when you are in the editor, type in the console it's like the sending of the custom keymap didn't happen as intended, this case is strange 🤨 Either Way i could reproduce the errors that you had at least in Mac and they were due to bad permissions in the local folder, i'll try to enable the read/write of the json file in the local user folder destined for that task (as it should be happening) but seems other way. |
Hey @abernix! Here you have the restore.json file |
Thank you, @AlexDygma! Let me know if there's anything else I can help with debugging this. The only thing I know I did wrong is that I pushed the ESC key down after the "countdown", but I let go of the ESC key immediately after the firmware update started applying and didn't keep it held down until the point in the instructions where it says to release it. |
It's more stable if you maintain the ESC key pressed, but shouldn't have failed in that way ( leaving out a command without executing it ) i'll probably add code to retry any failures at least once because this should be avoidable. The rest of the reports tend me to think the file access is not stable. |
Same issue, when doing the firmware upgrade the software attempts to make a backup JSON file in that roaming appdata folder and it just fails every time. I have the original firmware still installed that the first batch of keyboards shipped with and I finally decided to upgrade to this latest software since macro support was added and the software installed but whatever is wrong with this firmware updating process is beyond me. |
Same. Win10. Black raise updated fine. White one resulted in this error. Uninstall and reinstall Bazecor. Still nope. Tried Bootloader mode... Nope. UI Issues:
|
Hello @Silversong4vr @NiftyNeyo @FAQinghere ! Let's recap:
This makes me think the error is related to the Macros map restoring functionality added to the flashing process. To test this out and make the process work, we need to update to a prior version of the firmware first, the easiest way to do this is to get Bazecor 0.2.2 installed and flash your Raise with it first. Then Re install the latest Bazecor version 0.2.4 and flash again. this should make the keyboards flashable with the latest Bazecor version. In the meantime ill add a check in the flashing process to recognize if the keyboard has an old firmware version so it avoids trying to get the macros from it's EEPROM when that's impossible. Let's fix this! 😄 |
@AlexDygma I just tried (on macOS with an original white KS-Dygma): Using bazecor 0.22 worked to flash the 0.22 firmware (it is odd though, that at the end of the flashing the 'updating' box never finished and the Keyboard + Neuron stayed black. Using the LED-cycle key brought back the other modes). Then I reuploaded my Layers from Bazecor. |
Great, 😢, so in your case it should be a issue with the permissions the app has, did you open Bazecor by opening the app folder in finder, holding CTRL and pressing open in the contextual menu? if not the application may not have the required permits (you only have to do this once when you install) if you did, ill need your log file just to know if it's failing at the same point. File access should not be an issue, but with the application not being trusted by the O.S., who knows... we will address this in the next milestone btw. (Application credentials) |
@AlexDygma Flashing my keyboard with the firmware from Bazecor 0.22 first and then flashing it with the firmware from Bazecor 0.24 fixed the issue of being unable to flash my keyboard from version 0.1.0 software. Thanks for troubleshooting this. |
Thank you @NiftyNeyo for the workaround confirmation! As a consequence, you should keep the 0.2.2 app image around until final issue resolution, just in case you reset you EEPROM to factory defaults. |
Sorry I don't know a way that I can show that the workaround was successful. There may be other factors preventing the firmware update but at least in my scenario of being on version 0.1.0 software. The new firmware having macro support and the original not having it was the issue in why the software couldn't complete the backup and flash the device. If you have older keyboards around at Dygma, then I think you could replicate this and verify it. |
Hello @alagopus, @HomerSp, @NiftyNeyo! Thanks for the commit Homer! 😄 . Don't Worry Nifty, with your check i managed to replicate the bug at our office so i know exactly why it happens and the code that Homer applied is more than enough to make this work for anyone upgrading from an old version of the firmware. Still, i need to add a try catch structure to prevent failing when storing or reading back the config file. i'll do this today, and many more things! for the rest of the week ill push 0.2.5 until completion 😄. Thanks everyone for your help! |
Re-opening to also include file read/write operations and act if they fail. |
Describe the bug
After installing Bazecor 0.2.4 and setting the keyboard's LED's in rainbow mode, I click update firmware. A window briefly shows up for a few seconds, telling me about the countdown and what to press. A few seconds later that window disappears and I get an error on the bottom left saying "Firmware update failed, because the settings could not be saved."
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The countdown/instructions window shows up and the user follows the instructions to update the keyboard's firmware.
Screenshots
Desktop (please complete the following information):
Unsure how to update the Keyboard's firmware after updating Bazecor itself
The text was updated successfully, but these errors were encountered: