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.ld 2.0KB

5 vuotta sitten
5 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 = 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(4);
  21. KEEP(*(.init))
  22. __preinit_array_start = .;
  23. KEEP (*(.preinit_array))
  24. __preinit_array_end = .;
  25. __init_array_start = .;
  26. KEEP (*(.init_array))
  27. __init_array_end = .;
  28. . = ALIGN(16);
  29. } > FLASH
  30. .text : {
  31. . = . + 32; /* MPU to trap NULL pointer deref */
  32. *(.fastrun)
  33. *(.text*)
  34. . = ALIGN(16);
  35. } > ITCM AT> FLASH
  36. .vectorsRAM (NOLOAD) : {
  37. . = ALIGN(4);
  38. *(.vectorsRAM*)
  39. } > DTCM
  40. .data : {
  41. *(.rodata*)
  42. *(.data*)
  43. . = ALIGN(16);
  44. } > DTCM AT> FLASH
  45. .bss ALIGN(4) : {
  46. *(.bss*)
  47. *(COMMON)
  48. . = ALIGN(32);
  49. . = . + 32; /* MPU to trap stack overflow */
  50. } > DTCM
  51. .bss.dma (NOLOAD) : {
  52. *(.dmabuffers)
  53. . = ALIGN(16);
  54. } > RAM
  55. _stext = ADDR(.text);
  56. _etext = ADDR(.text) + SIZEOF(.text);
  57. _stextload = LOADADDR(.text);
  58. _sdata = ADDR(.data);
  59. _edata = ADDR(.data) + SIZEOF(.data);
  60. _sdataload = LOADADDR(.data);
  61. _sbss = ADDR(.bss);
  62. _ebss = ADDR(.bss) + SIZEOF(.bss);
  63. _heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
  64. _heap_end = ORIGIN(RAM) + LENGTH(RAM);
  65. _itcm_block_count = (SIZEOF(.text) + 0x7FFE) >> 15;
  66. _flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1);
  67. _estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15);
  68. _flashimagelen = SIZEOF(.text.progmem) + SIZEOF(.text) + SIZEOF(.data);
  69. _teensy_model_identifier = 0x24;
  70. .debug_info 0 : { *(.debug_info) }
  71. .debug_abbrev 0 : { *(.debug_abbrev) }
  72. .debug_line 0 : { *(.debug_line) }
  73. .debug_frame 0 : { *(.debug_frame) }
  74. .debug_str 0 : { *(.debug_str) }
  75. .debug_loc 0 : { *(.debug_loc) }
  76. }