PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

imxrt1062_t41.ld 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. MEMORY
  2. {
  3. ITCM (rwx): ORIGIN = 0x00000000, LENGTH = 512K
  4. DTCM (rwx): ORIGIN = 0x20000000, LENGTH = 512K
  5. RAM (rwx): ORIGIN = 0x20200000, LENGTH = 512K
  6. FLASH (rwx): ORIGIN = 0x60000000, LENGTH = 7936K
  7. ERAM (rwx): ORIGIN = 0x70000000, LENGTH = 16384K
  8. }
  9. ENTRY(ImageVectorTable)
  10. SECTIONS
  11. {
  12. .text.progmem : {
  13. KEEP(*(.flashconfig))
  14. FILL(0xFF)
  15. . = ORIGIN(FLASH) + 0x1000;
  16. KEEP(*(.ivt))
  17. KEEP(*(.bootdata))
  18. KEEP(*(.vectors))
  19. KEEP(*(.startup))
  20. *(.flashmem*)
  21. *(.progmem*)
  22. . = ALIGN(4);
  23. KEEP(*(.init))
  24. __preinit_array_start = .;
  25. KEEP (*(.preinit_array))
  26. __preinit_array_end = .;
  27. __init_array_start = .;
  28. KEEP (*(.init_array))
  29. __init_array_end = .;
  30. . = ALIGN(16);
  31. } > FLASH
  32. .text.itcm : {
  33. . = . + 32; /* MPU to trap NULL pointer deref */
  34. *(.fastrun)
  35. *(.text*)
  36. . = ALIGN(16);
  37. } > ITCM AT> FLASH
  38. .ARM.exidx : {
  39. __exidx_start = .;
  40. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  41. __exidx_end = .;
  42. } > ITCM AT> FLASH
  43. .text.itcm.padding (NOLOAD) : {
  44. . = ALIGN(32768);
  45. } > ITCM
  46. .data : {
  47. *(.rodata*)
  48. *(.data*)
  49. . = ALIGN(16);
  50. } > DTCM AT> FLASH
  51. .bss ALIGN(4) : {
  52. *(.bss*)
  53. *(COMMON)
  54. . = ALIGN(32);
  55. . = . + 32; /* MPU to trap stack overflow */
  56. } > DTCM
  57. .bss.dma (NOLOAD) : {
  58. *(.dmabuffers)
  59. . = ALIGN(32);
  60. } > RAM
  61. .bss.extram (NOLOAD) : {
  62. *(.externalram)
  63. } > ERAM
  64. _stext = ADDR(.text.itcm);
  65. _etext = ADDR(.text.itcm) + SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx);
  66. _stextload = LOADADDR(.text.itcm);
  67. _sdata = ADDR(.data);
  68. _edata = ADDR(.data) + SIZEOF(.data);
  69. _sdataload = LOADADDR(.data);
  70. _sbss = ADDR(.bss);
  71. _ebss = ADDR(.bss) + SIZEOF(.bss);
  72. _heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
  73. _heap_end = ORIGIN(RAM) + LENGTH(RAM);
  74. _itcm_block_count = (SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + 0x7FFF) >> 15;
  75. _flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1);
  76. _estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15);
  77. _flashimagelen = SIZEOF(.text.progmem) + SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + SIZEOF(.data);
  78. _teensy_model_identifier = 0x25;
  79. .debug_info 0 : { *(.debug_info) }
  80. .debug_abbrev 0 : { *(.debug_abbrev) }
  81. .debug_line 0 : { *(.debug_line) }
  82. .debug_frame 0 : { *(.debug_frame) }
  83. .debug_str 0 : { *(.debug_str) }
  84. .debug_loc 0 : { *(.debug_loc) }
  85. }