You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.4KB

  1. MEMORY
  2. {
  3. ITCM (rwx): ORIGIN = 0x00000000, LENGTH = 128K
  4. DTCM (rwx): ORIGIN = 0x20000000, LENGTH = 128K
  5. RAM (rwx): ORIGIN = 0x20200000, LENGTH = 256K
  6. FLASH (rwx): ORIGIN = 0x60000000, LENGTH = 1536K
  7. }
  8. ENTRY(ImageVectorTable)
  9. SECTIONS
  10. {
  11. .text.progmem : {
  12. KEEP(*(.flashconfig))
  13. FILL(0xFF)
  14. . = ORIGIN(FLASH) + 0x1000;
  15. KEEP(*(.ivt))
  16. KEEP(*(.bootdata))
  17. KEEP(*(.vectors))
  18. KEEP(*(.startup))
  19. *(.progmem*)
  20. . = ALIGN(16);
  21. } > FLASH
  22. .text : {
  23. . = . + 32; /* MPU to trap NULL pointer deref */
  24. *(.fastrun)
  25. *(.text*)
  26. . = ALIGN(16);
  27. } > ITCM AT> FLASH
  28. .data : {
  29. *(.rodata*)
  30. *(.data*)
  31. . = ALIGN(16);
  32. } > DTCM AT> FLASH
  33. .bss : {
  34. *(.bss*)
  35. *(COMMON)
  36. . = ALIGN(32);
  37. . = . + 32; /* MPU to trap stack overflow */
  38. } > DTCM
  39. .bss.dma : {
  40. *(.dmabuffers)
  41. . = ALIGN(16);
  42. } > RAM
  43. _stext = ADDR(.text);
  44. _etext = ADDR(.text) + SIZEOF(.text);
  45. _stextload = LOADADDR(.text);
  46. _sdata = ADDR(.data);
  47. _edata = ADDR(.data) + SIZEOF(.data);
  48. _sdataload = LOADADDR(.data);
  49. _estack = ORIGIN(DTCM) + LENGTH(DTCM);
  50. _sbss = ADDR(.bss);
  51. _ebss = ADDR(.bss) + SIZEOF(.bss);
  52. _flashimagelen = SIZEOF(.text.progmem) + SIZEOF(.text) + SIZEOF(.data);
  53. _teensy_model_identifier = 0x23;
  54. .debug_info 0 : { *(.debug_info) }
  55. .debug_abbrev 0 : { *(.debug_abbrev) }
  56. .debug_line 0 : { *(.debug_line) }
  57. .debug_frame 0 : { *(.debug_frame) }
  58. .debug_str 0 : { *(.debug_str) }
  59. .debug_loc 0 : { *(.debug_loc) }
  60. }