dhowland / EasyAVR

Easy AVR USB Keyboard Firmware and Keymapper
GNU General Public License v2.0
533 stars 86 forks source link

Fails to build binary #60

Closed Cabalforces closed 6 years ago

Cabalforces commented 6 years ago

Throws this error message

dhowland commented 6 years ago

What is the hardware and layout? Can you provide the save file? thanks.

Cabalforces commented 6 years ago

It's a teensy, the layout is a numpad with an extra row numpad.zip

dhowland commented 6 years ago

The problem is the definition of the board. You have this:

num_rows = 6
num_cols = 4

And then later you have this:

((4, 4), (0, 6), 'SCANCODE_FN0')],

That assigns the key to matrix row index 0 and column index 6. (that's the 7th column) There are only 4.

The matrix assignments for all the keys require fixing.

Cabalforces commented 6 years ago

Thank you very much for your help, it was driving me crazy. I've read through the whole code at least ten times, and I didn't find the mistake.

dhowland commented 6 years ago

No problem, and I commend you for sticking with it. Because the tool has to support so many different kinds of boards, these files end up being very complicated and few people have managed to understand them.

But you have reminded me that I really need to put a sanity check into the config loader so these common issues are pointed out immediately when you load it. I'll add that to 3.0.

dhowland commented 6 years ago

Quoting from the Geekhack thread:

"if you try and build a COSTAR sized matrix against the FULLSIZE firmware it doesn't work well"

In addition, Pull Request #37 tried to fix this kind of problem a year ago.

Two more data points that show this Issue needs to be fixed.

I'll be adding some defensive code soon.