tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.96k stars 1.7k forks source link

UNIMAP: Undefined layers in firmware #758

Open tmk opened 1 year ago

tmk commented 1 year ago

when you don't define unused layers in keymap file, flash memory space for the undefined layers is filled with 0xFFFF(on AVR at least) and the the code is not valid for unimap action. It would be better that the undefined space is filled with TRANS(or NO) action.

TMK keymap editor fill the undefined space with 0x0001(TRANS) when its firmware is downloaded. This is not a problem here.

Solutions:

  1. Change code to reognized 0xFFFF as TRANS(or NO).
  2. Change linker script to fill with TRANS(or NO)