qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.8k stars 38.15k forks source link

Help with hex, msys64, make command not found #2948

Closed neanic closed 6 years ago

neanic commented 6 years ago

I've been trying to get qmk going for my iris. I made it to the make hex part but now I'm stuck. I was following this guide- https://www.reddit.com/r/olkb/comments/7pnsrc/qmk_guide_for_flashing_keyboards/

I'm getting "make :command not found" after running make iris/rev2:default

drashna commented 6 years ago

make sure that you are actually in the qmk folder.

You may need to run cd qmk or cd qmk_firmware before running the make command.

neanic commented 6 years ago

I've tried a few different folders with the same result. I'm pretty sure I'm in the right one though. I had a similar message earlier in the install when I was trying to run a git command. I ended up having to run this command: pacman -S git . I was wondering if there was something like that that I'm missing. It took me a while to find that and I haven't been able to find anything, except what you recommended, about it.

drashna commented 6 years ago

Make sure you're following this: https://qmk.github.io/qmk_firmware/#/newbs_getting_started

neanic commented 6 years ago

Thanks for trying guys. I think I'm just too dense. I followed everything, to the best of my ability, with the same result. ./util/qmk_install.sh didn't seem to do anything... Anyone want to buy a soldered iris with blue leds?

drashna commented 6 years ago

If you are fine with using the default layout: http://qmk.fm/compiled/iris_rev2_default.hex https://github.com/qmk/qmk_firmware/tree/master/keyboards/iris/keymaps/default/keymap.c

Otherwise, if you have a customized keymap that you want to use, you can link it here, and and I can see about helping.

And I do have some remote support tools, so I could possibly help with gitting it installed.

neanic commented 6 years ago

I deleted qmk and reinstalled it. Now I can't find it on my computer to modify the keymaps.

capture

jbtompkins commented 6 years ago

Have you installed gcc on msys2? I think the command is

pacman -S gcc

Found on this issue

neanic commented 6 years ago

Installed it. Same result.

drashna commented 6 years ago

try util/msys2_install.shinstead

neanic commented 6 years ago

It works! Thanks for all the help. I'll try to flash it tomorrow.

drashna commented 6 years ago

awesome, glad to hear it!

neanic commented 6 years ago

Having issues flashing my pro micros. Should I start a new issue?

drashna commented 6 years ago

nah, that's fine.

Use AVRDUDESS to flash the Pro Micro.

neanic commented 6 years ago

avrdudes

I'm sure I'm doing something wrong. I also tried to do it in msys, but couldn't connect either.

drashna commented 6 years ago

AVRDUDESS needs to use the "avr109" programmer, and use the PORT in question.

image

neanic commented 6 years ago

avrdude

drashna commented 6 years ago

Make sure you reset the PM, even if the COM port shows up normally.

It WILL change when this happens. This is because sketches use "special sauce" to flash "live".

neanic commented 6 years ago

Do I hold the button when turning it on or push it after? Should I keep it pressed while flashing? Do I have to change the port manually somehow? c5

drashna commented 6 years ago

tap the button. And to so twice, rapidly.

Once you do, you should hear the disconnect/connect chime. Then click "program" in AVRDUDESS.

If that still has issues. open up Device Manager on the system, and check to see when if/when the "new" COM port for the controller shows up.

neanic commented 6 years ago

It changes from com4 to com5 but still doesn't work.

neanic commented 6 years ago

I think it may be a driver problem, but I'm not sure how to fix it.

neanic commented 6 years ago

Thanks for the help. Sorry for being so dense.