Fix some bugs

Fix templete bootloader project --c99

fix tsi ELECTRODE #define setting