소스 검색

Improve flash security documentation

main
PaulStoffregen 8 년 전
부모
커밋
50c805926f
1개의 변경된 파일11개의 추가작업 그리고 7개의 파일을 삭제
  1. +11
    -7
      teensy3/mk20dx128.c

+ 11
- 7
teensy3/mk20dx128.c 파일 보기

@@ -34,13 +34,17 @@


// Flash Security Setting. On Teensy 3.2, you can lock the MK20 chip to prevent
// anyone from reading your code. The bootloader will be unable to respond to
// auto-reboot requests from Arduino. Pressing the program button will cause a
// full chip erase, because the bootloader chip is locked out. Normally, erase
// occurs when uploading begins, so if you press the Program button accidentally,
// simply power cycling will run your program again. When security is locked,
// any Program button press causes immediate full erase. To set the security
// lock, change this to 0xDC. Teensy 3.0 and 3.1 do not support security lock.
// 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. Pressing the program button will cause a full chip
// erase to gain access, because the bootloader chip is locked out. Normally,
// erase occurs when uploading begins, so if you press the Program button
// accidentally, simply power cycling will run your program again. When
// security is locked, any Program button press causes immediate full erase.
// Special care must be used with the Program button, because it must be made
// accessible to initiate reprogramming, but it must not be accidentally
// pressed when Teensy Loader is not being used to reprogram. To set lock the
// security change this to 0xDC. Teensy 3.0 and 3.1 do not support security lock.
#define FSEC 0xDE

// Flash Options

Loading…
취소
저장