Is it really not possible to have a secure device while also allowing its firmware to be updated without pressing the program button? If we enable the lock bits, then _reboot_Teensyduino_() doesn't seem to work. Does anyone have a workaround for this?
Code:
// Flash Security Setting. On Teensy 3.2, you can lock the MK20 chip to prevent
// anyone from reading your code. You CAN still reprogram your Teensy while
// security is set, but the bootloader will be unable to respond to auto-reboot
// requests from Arduino.