]> git.donarmstrong.com Git - kiibohd-controller.git/commit
Fixing device bricking bug
authorJacob Alexander <haata@kiibohd.com>
Sun, 11 Jan 2015 03:53:46 +0000 (19:53 -0800)
committerJacob Alexander <haata@kiibohd.com>
Sun, 11 Jan 2015 03:53:46 +0000 (19:53 -0800)
commit2c7542e2e7f0b8a99edf563dc53164fe1a439483
treee22b20978186d200a7db3050a19f0e9bb70797cd
parent8e546721219e6ecf94a841334d5198c2ed5cf46d
Fixing device bricking bug

- When loading a garbage image onto the device, the chip hangs
  and refuses to jump to the bootloader and start dfu

Fix
- Check if chip was in locked state and jump to dfu
- Check if watchdog timer fired and jump to dfu
Bootloader/CMakeLists.txt
Bootloader/flash.c
Lib/mk20dx.c