]> git.donarmstrong.com Git - qmk_firmware.git/commit
Make sure NOBITS is set on reset_key
authorDanny Nguyen <danny@keeb.io>
Wed, 20 Mar 2019 21:45:45 +0000 (17:45 -0400)
committerskullydazed <skullydazed@users.noreply.github.com>
Fri, 19 Apr 2019 21:44:16 +0000 (14:44 -0700)
commit746058306b6c3b037fc560a13bb78d088c734401
tree8b5295ba80eb632f84e709355d4d3fea86466f29
parent50fce7f255fa39c90239c6406f9c6b3ca2050114
Make sure NOBITS is set on reset_key

Patch from https://github.com/qmk/qmk_firmware/issues/3657#issuecomment-415147411

Long story short, in avr-gcc pre-8.2, reset_key was assigned to a memory area that was in a normal range, but when 8.2 came out, that memory got moved to an out of range area, causing errors like 0x800293 out of range. Apparently, this was fixed up in avr-gcc, but we haven't seen a release with the fix yet (we expected it in 8.3, but that didn't happen for some reason).

What this commit does is move the reset_key back to the original memory location it was in before.
tmk_core/common/avr/bootloader.c