MIMXRT1021xxxxx_sdram.scf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!armclang --target=arm-arm-none-eabi -mcpu=cortex-m7 -E -x c
  2. /*
  3. ** ###################################################################
  4. ** Processors: MIMXRT1021CAF4A
  5. ** MIMXRT1021CAG4A
  6. ** MIMXRT1021DAF5A
  7. ** MIMXRT1021DAG5A
  8. **
  9. ** Compiler: Keil ARM C/C++ Compiler
  10. ** Reference manual: IMXRT1020RM Rev.1, 12/2018 | IMXRT1020SRM Rev.3
  11. ** Version: rev. 0.1, 2017-06-06
  12. ** Build: b210709
  13. **
  14. ** Abstract:
  15. ** Linker file for the Keil ARM C/C++ Compiler
  16. **
  17. ** Copyright 2016 Freescale Semiconductor, Inc.
  18. ** Copyright 2016-2021 NXP
  19. ** All rights reserved.
  20. **
  21. ** SPDX-License-Identifier: BSD-3-Clause
  22. **
  23. ** http: www.nxp.com
  24. ** mail: support@nxp.com
  25. **
  26. ** ###################################################################
  27. */
  28. #define m_interrupts_start 0x00000000
  29. #define m_interrupts_size 0x00000400
  30. #define m_text_start 0x00000400
  31. #define m_text_size 0x0000FC00
  32. #define m_data_start 0x80000000
  33. #define m_data_size 0x01E00000
  34. #define m_data2_start 0x20000000
  35. #define m_data2_size 0x00010000
  36. #define m_data3_start 0x20200000
  37. #define m_data3_size 0x00020000
  38. #define m_ncache_start 0x81E00000
  39. #define m_ncache_size 0x00200000
  40. /* Sizes */
  41. #if (defined(__stack_size__))
  42. #define Stack_Size __stack_size__
  43. #else
  44. #define Stack_Size 0x0400
  45. #endif
  46. #if (defined(__heap_size__))
  47. #define Heap_Size __heap_size__
  48. #else
  49. #define Heap_Size 0x0400
  50. #endif
  51. LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
  52. VECTOR_ROM m_interrupts_start FIXED m_interrupts_size { ; load address = execution address
  53. * (.isr_vector,+FIRST)
  54. }
  55. ER_m_text m_text_start FIXED m_text_size { ; load address = execution address
  56. * (InRoot$$Sections)
  57. * (CodeQuickAccess)
  58. .ANY (+RO)
  59. }
  60. VECTOR_RAM m_interrupts_start EMPTY 0 {
  61. }
  62. #if (defined(__heap_noncacheable__))
  63. RW_m_data m_data_start m_data_size-Stack_Size { ; RW data
  64. #else
  65. RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
  66. #endif
  67. .ANY (+RW +ZI)
  68. * (*m_usb_dma_init_data)
  69. * (*m_usb_dma_noninit_data)
  70. }
  71. #if (!defined(__heap_noncacheable__))
  72. ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
  73. }
  74. #endif
  75. ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
  76. }
  77. RW_m_data2 m_data2_start m_data2_size { ;
  78. * (DataQuickAccess)
  79. }
  80. #if (defined(__heap_noncacheable__))
  81. RW_m_ncache m_ncache_start m_ncache_size - Heap_Size { ; ncache RW data
  82. #else
  83. RW_m_ncache m_ncache_start m_ncache_size { ; ncache RW data
  84. #endif
  85. * (NonCacheable.init)
  86. * (*NonCacheable)
  87. }
  88. #if (defined(__heap_noncacheable__))
  89. ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
  90. }
  91. RW_m_ncache_unused +0 EMPTY m_ncache_size-ImageLength(RW_m_ncache)-Heap_Size { ; Empty region added for MPU configuration
  92. #else
  93. RW_m_ncache_unused +0 EMPTY m_ncache_size-ImageLength(RW_m_ncache) { ; Empty region added for MPU configuration
  94. #endif
  95. }
  96. }