Working on NXP/Teensy support

This commit is contained in:
Ethan Reesor
2020-02-18 01:09:16 -06:00
committed by Ron Evans
parent 079a789d49
commit 59218cd784
11 changed files with 449 additions and 84 deletions
+4 -4
View File
@@ -22,19 +22,19 @@ SECTIONS
_vector_table = .;
KEEP(*(.isr_vector))
/* this works as long as reset handler doesn't overflow past 0x400 */
*(.resetHandler)
/* flash configuration MUST be at 0x400 */
. = 0x400;
KEEP(*(.flashconfig))
_flash_config = .;
KEEP(*(.flash_config))
/* everything else */
*(.resetHandler)
*(.text)
*(.text*)
*(.rodata)
*(.rodata*)
. = ALIGN(4);
} >FLASH_TEXT = 0xFF
/* Put the stack at the bottom of RAM, so that the application will
+2 -1
View File
@@ -11,7 +11,8 @@
],
"linkerscript": "targets/nxpmk66f18.ld",
"extra-files": [
"src/device/nxp/mk66f18.s"
"src/device/nxp/mk66f18.s",
"targets/teensy36.s"
],
"flash-command": "teensy_loader_cli -mmcu=mk66fx1m0 -v -w {hex}"
}
+19
View File
@@ -0,0 +1,19 @@
.section .flash_config
.global __flash_config
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xFF
.byte 0xDE
.byte 0xF9
.byte 0xFF
.byte 0xFF