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.

преди 6 години
преди 5 години
преди 6 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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(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. .data : {
  37. *(.rodata*)
  38. *(.data*)
  39. . = ALIGN(16);
  40. } > DTCM AT> FLASH
  41. .bss : {
  42. *(.bss*)
  43. *(COMMON)
  44. . = ALIGN(32);
  45. . = . + 32; /* MPU to trap stack overflow */
  46. } > DTCM
  47. .bss.dma : {
  48. *(.dmabuffers)
  49. . = ALIGN(16);
  50. } > RAM
  51. _stext = ADDR(.text);
  52. _etext = ADDR(.text) + SIZEOF(.text);
  53. _stextload = LOADADDR(.text);
  54. _sdata = ADDR(.data);
  55. _edata = ADDR(.data) + SIZEOF(.data);
  56. _sdataload = LOADADDR(.data);
  57. _estack = ORIGIN(DTCM) + LENGTH(DTCM);
  58. _sbss = ADDR(.bss);
  59. _ebss = ADDR(.bss) + SIZEOF(.bss);
  60. _heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
  61. _heap_end = ORIGIN(RAM) + LENGTH(RAM);
  62. _flashimagelen = SIZEOF(.text.progmem) + SIZEOF(.text) + SIZEOF(.data);
  63. _teensy_model_identifier = 0x23;
  64. .debug_info 0 : { *(.debug_info) }
  65. .debug_abbrev 0 : { *(.debug_abbrev) }
  66. .debug_line 0 : { *(.debug_line) }
  67. .debug_frame 0 : { *(.debug_frame) }
  68. .debug_str 0 : { *(.debug_str) }
  69. .debug_loc 0 : { *(.debug_loc) }
  70. }