-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added additional mcu for a CTRL with a different chip id. #25
Conversation
Thanks for the fix, @pgillan145! I compiled this on my Mac and it updated my new High-Profile just fine. :) |
#24 (comment) is a cleaner solution, that doesn't require an entirely new entry be created. |
How's it cleaner? It seems like a hack that relies on coincidence, and if a device came along with a chip id that happened to fit the pattern it would fail. The whole point of the mcu array is to support multiple chips, and that's what this seems to be, a new chip. |
It's not a new chip, it's the same chip (ATSAMD51J18A) with a different revision ID. See Table 1 from this document: http://ww1.microchip.com/downloads/en/DeviceDoc/SAM-D5x-E5x-Family-Silicon-Errata-DS80000748K.pdf |
(NOTE: I know this in an incredibly minor and inconsequential change, I'm just continuing the discussion because I like to argue and I don't have much going on today.) You can't claim something's the same if the primary id changes -- if the unique identifier changes, it's different, by definition. The correct solution in this case would be to modify the mcu list so it included the mask, or some other way to indicate the "revision" digit. Also, your change is totally opaque, and anyone looking at it would have no idea why it's there. At the very least it requires a comment. I also had a couple of other points about another random chip having the same pattern, or the revision number exceeding 16, but the data sheet makes those pretty much irrelevant. |
Tell that to Microchip, I guess? They're the ones saying it's the same part number. The revision number changing doesn't make it a different part, thus the
I didn't file a PR or anything, I just said "change this line to this". You're free to add whatever comments you want. But yes, I probably should have clarified what it does exactly. |
Thanks, all. We applied the change suggested by @fauxpark : #24 (comment) Newly-compiled files are here: https://github.com/Massdrop/mdloader/releases |
My new CTRL High-Profile had a different chip ID than what was listed in the mcu structure, so I added an addition entry. Tested using mdloader to write a new keymap against both my new CTRL and the original low-profile without issue.