mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
Working on NXP/Teensy support
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user