-
-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Can't flash infinity_chibios_default.hex #575
Comments
Sorry for the poor instructions. Some instructions are going to be added as part of #503, and more a little bit later. However, you need to run And if you are doing it manually, you need to flash the .bin file, not the .hex one. I will remove the hex files completely for the Ergodox Infinity at some point. |
It's a work in progress, so I understand! I suppose I wasn't entirely clear, but I've got two Infinity 60% boards, not an Infinity Ergodox. One is from drop 3 and one is from the most recent drop (4?). When running |
The process for Infinity 60% should be the same. But I don't think anyone has tested that keyboard yet, so I'm not sure if it's working or not. Also some versions might not work, since there's a pull request for the TMK firmware tmk/tmk_keyboard#371 The |
and
I do see at the end of the compilation that a .bin is generated, but I have no idea where it ends up.
I feel like there's probably something silly that I'm doing wrong (like the Thanks for pointing out that tmk pull request, though! I'll have to test that one out. I've been avoiding using my newest Infinity all that much because KLL doesn't let me use the keymap I really want. |
You have a quite old version of dfu-util, my version is 0.8. Some Ubuntu distributions does not seem to provide newer versions though. But if yours does then it should be easy to update with apt-get. Otherwise you have to build it from the sources http://dfu-util.sourceforge.net/build.html. If you want to flash it with windows, the bin file should be located in |
I was unable to update dfu-util with apt-get, but I did build and install from source like you suggested. It still wouldn't let me flash the firmware, which was odd, but since you told me where to find the .bin file (I feel dumb for not thinking of a hidden file), I was able to flash it with the kii-dfu Windows program that was distributed for flashing the Infinity board originally. My new problem is that my keymap isn't working the way I expected. Looking at other QMK examples, it seems that it's more appropriate to use I tried using my existing TMK keymap with the only changes being using the QMK aliases (though still put in the keymap with |
Good that you got it flashed. I have no idea why it doesn't work in Ubuntu though. Is it a real machine or a virtual one? You are probably using your own KEYMAP macro, rather than the one defined in infinity_chibios.h. When converting a TMK keyboard, you should also remove the If that doesn't help, then I need to see your keymap to help you further, do you have it in Github? |
It's a real machine. It's running Ubuntu 14.04 LTS, for what that's worth. As long as I have a way to make it work, though, I'm not super concerned, even though it's really odd. The version of my keymap that I intend(ed?) to use can be found here. I had a much more TMK-style one that I attempted as well, but like I said, the As an aside, once I have my drop 3 Infinity figured out, I'll see what I can do as far as getting QMK going on my drop 4... |
I suppose I should have mentioned that the files I've got are consistent with that commit you linked, so that shouldn't be the issue. |
It looks like you should move those functions from the fn_actions array to the keymap itself. Take a look at the ergodox default keymap for example. Yesterday, I submitted a pull request with some documentation changes related to this. But I still think the documentation could be a lot clearer regarding this. |
Even having done that (github version of my keymap has been updated), I'm still getting lots of errors regarding the
Why is having the aliases directly in the keymap better than having |
Ah, I see now. There's a problem in infinity_chibios.h Those macros should be changed to not add KC_. That will break the included keymaps though, so they need to be changed as well. After that change your keymap should work when everything is prefixed with KC_ Do you think you can do that? |
When you say the macros should be changed to not add KC_, you mean that the ones with Or do you mean that the entire second section of the keymap definition (i.e. the entire section including all of the |
That's almost correct. But the |
It now works flawlessly. Thank you so much for your time and patience! You're welcome to close this whenever you like; I figured I'd just leave it open until those changes get merged. Now time to test out my newer Infinity! |
I can't close this myself. But feel free to close it. If you want to, you can send a pull request with the fixes, including ones for the included keyboard layouts. Otherwise I will do it in the near future. |
I'm still really new to using git (and a lot of this stuff in general), so if you don't see a pull request from me by the time you get around to doing it, just go ahead with yours. It might take me a bit to get all this figured out lol |
Ok, no problem 😄 |
I'm unable to flash my compiled firmware using
make dfu
,make program
, or the QMK Firmware Flasher program for Windows. The first two are done on Ubuntu and produce no results at all. The firmware flasher never allows me to click the flash button, which makes it seem like it's not detecting that the keyboard has had the reset button pressed. I did also try flashing via the kii-dfu Windows program, which "worked;" the .hex file got flashed, and the keyboard would no longer do anything, but as soon as I flashed TMK again (usingsudo make -f Makefile program
), things were back to normal.For what it's worth, KLL/Kiibohd flash a .bin, not a .hex, and the TMK version of infinity_chibios outputs a handful of files, one of which is a .bin.
Is there something I'm doing wrong, or is this an actual problem?
The text was updated successfully, but these errors were encountered: