Teensy 4.1 core updated for C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

102 rindas
2.3KB

  1. MEMORY
  2. {
  3. ITCM (rwx): ORIGIN = 0x00000000, LENGTH = 512K
  4. DTCM (rwx): ORIGIN = 0x20000000, LENGTH = 512K
  5. RAM (rwx): ORIGIN = 0x20202000, LENGTH = 504K
  6. FLASH (rwx): ORIGIN = 0x60000000, LENGTH = 1984K
  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(*(.startup))
  18. *(.flashmem*)
  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.itcm : {
  31. . = . + 32; /* MPU to trap NULL pointer deref */
  32. *(.fastrun)
  33. *(.text*)
  34. . = ALIGN(16);
  35. } > ITCM AT> FLASH
  36. .ARM.exidx : {
  37. __exidx_start = .;
  38. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  39. __exidx_end = .;
  40. } > ITCM AT> FLASH
  41. .text.itcm.padding (NOLOAD) : {
  42. . = ALIGN(32768);
  43. } > ITCM
  44. .data : {
  45. *(.rodata*)
  46. *(.data*)
  47. } > DTCM AT> FLASH
  48. .bss ALIGN(4) : {
  49. *(.bss*)
  50. *(COMMON)
  51. . = ALIGN(32);
  52. . = . + 32; /* MPU to trap stack overflow */
  53. } > DTCM
  54. .bss.dma (NOLOAD) : {
  55. *(.dmabuffers)
  56. . = ALIGN(32);
  57. } > RAM
  58. .text.csf : {
  59. FILL(0xFF)
  60. . = ALIGN(4);
  61. KEEP(*(.csf))
  62. } > FLASH
  63. _stext = ADDR(.text.itcm);
  64. _etext = ADDR(.text.itcm) + SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx);
  65. _stextload = LOADADDR(.text.itcm);
  66. _sdata = ADDR(.data);
  67. _edata = ADDR(.data) + SIZEOF(.data);
  68. _sdataload = LOADADDR(.data);
  69. _sbss = ADDR(.bss);
  70. _ebss = ADDR(.bss) + SIZEOF(.bss);
  71. _heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
  72. _heap_end = ORIGIN(RAM) + LENGTH(RAM);
  73. _itcm_block_count = (SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + 0x7FFF) >> 15;
  74. _flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1);
  75. _estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15);
  76. _flashimagelen = SIZEOF(.text.progmem) + SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + SIZEOF(.data) + SIZEOF(.text.csf);
  77. _teensy_model_identifier = 0x24;
  78. .debug_info 0 : { *(.debug_info) }
  79. .debug_abbrev 0 : { *(.debug_abbrev) }
  80. .debug_line 0 : { *(.debug_line) }
  81. .debug_frame 0 : { *(.debug_frame) }
  82. .debug_str 0 : { *(.debug_str) }
  83. .debug_loc 0 : { *(.debug_loc) }
  84. }