Kiibohd Controller
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

mk20dx128vlf5.ld 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* -*- mode: ld-script; -*- */
  2. /*
  3. * Linker script for MK20DX128VLF5
  4. */
  5. MEMORY
  6. {
  7. FLASH (rx) : ORIGIN = 3K, LENGTH = 128K-3K
  8. RAM (rwx) : ORIGIN = 0x20000000 - 16K / 2, LENGTH = 16K
  9. }
  10. /* Section Definitions */
  11. SECTIONS
  12. {
  13. .text :
  14. {
  15. . = 0;
  16. KEEP(* (.vectors))
  17. *(.startup*)
  18. *(.text*)
  19. *(.rodata*)
  20. . = ALIGN(4);
  21. KEEP(*(.init))
  22. . = ALIGN(4);
  23. __preinit_array_start = .;
  24. KEEP (*(.preinit_array))
  25. __preinit_array_end = .;
  26. __init_array_start = .;
  27. KEEP (*(SORT(.init_array.*)))
  28. KEEP (*(.init_array))
  29. __init_array_end = .;
  30. } > FLASH = 0xFF
  31. .ARM.exidx :
  32. {
  33. __exidx_start = .;
  34. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  35. __exidx_end = .;
  36. } > FLASH
  37. _etext = .;
  38. .usbdescriptortable (NOLOAD) : {
  39. . = ALIGN(512);
  40. *(.usbdescriptortable*)
  41. } > RAM
  42. .dmabuffers (NOLOAD) : {
  43. . = ALIGN(4);
  44. *(.dmabuffers*)
  45. } > RAM
  46. .usbbuffers (NOLOAD) : {
  47. . = ALIGN(4);
  48. *(.usbbuffers*)
  49. } > RAM
  50. .data : AT (_etext) {
  51. . = ALIGN(4);
  52. _sdata = .;
  53. *(.data*)
  54. . = ALIGN(4);
  55. _edata = .;
  56. } > RAM
  57. .noinit (NOLOAD) : {
  58. *(.noinit*)
  59. } > RAM
  60. .bss : {
  61. . = ALIGN(4);
  62. _sbss = .;
  63. *(.bss*)
  64. *(COMMON)
  65. . = ALIGN(4);
  66. _ebss = .;
  67. __bss_end = .;
  68. } > RAM
  69. _estack = ORIGIN(RAM) + LENGTH(RAM);
  70. }