MIMXRT1176xxxxx_cm4_ram.scf 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #!armclang --target=arm-arm-none-eabi -mcpu=cortex-m4 -E -x c
  2. /*
  3. ** ###################################################################
  4. ** Processors: MIMXRT1176AVM8A_cm4
  5. ** MIMXRT1176CVM8A_cm4
  6. ** MIMXRT1176DVMAA_cm4
  7. **
  8. ** Compiler: Keil ARM C/C++ Compiler
  9. ** Reference manual: IMXRT1170RM, Rev 1, 02/2021
  10. ** Version: rev. 1.0, 2020-12-29
  11. ** Build: b210709
  12. **
  13. ** Abstract:
  14. ** Linker file for the Keil ARM C/C++ Compiler
  15. **
  16. ** Copyright 2016 Freescale Semiconductor, Inc.
  17. ** Copyright 2016-2021 NXP
  18. ** All rights reserved.
  19. **
  20. ** SPDX-License-Identifier: BSD-3-Clause
  21. **
  22. ** http: www.nxp.com
  23. ** mail: support@nxp.com
  24. **
  25. ** ###################################################################
  26. */
  27. #define m_interrupts_start 0x1FFE0000
  28. #define m_interrupts_size 0x00000400
  29. #define m_text_start 0x1FFE0400
  30. #define m_text_size 0x0001FC00
  31. #define m_data_start 0x20000000
  32. #define m_data_size 0x00020000
  33. #define m_ncache_start 0x20280000
  34. #define m_ncache_size 0x00040000
  35. #define m_data2_start 0x20240000
  36. #define m_data2_size 0x00040000
  37. #if (defined(__use_shmem__))
  38. #define m_rpmsg_sh_mem_start 0x202C0000
  39. #define m_rpmsg_sh_mem_size 0x00002000
  40. #endif
  41. /* Sizes */
  42. #if (defined(__stack_size__))
  43. #define Stack_Size __stack_size__
  44. #else
  45. #define Stack_Size 0x0400
  46. #endif
  47. #if (defined(__heap_size__))
  48. #define Heap_Size __heap_size__
  49. #else
  50. #define Heap_Size 0x0400
  51. #endif
  52. LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
  53. VECTOR_ROM m_interrupts_start FIXED m_interrupts_size { ; load address = execution address
  54. * (.isr_vector,+FIRST)
  55. }
  56. ER_m_text m_text_start FIXED m_text_size { ; load address = execution address
  57. * (InRoot$$Sections)
  58. * (CodeQuickAccess)
  59. .ANY (+RO)
  60. }
  61. VECTOR_RAM m_interrupts_start EMPTY 0 {
  62. }
  63. #if (defined(__heap_noncacheable__))
  64. RW_m_data m_data_start m_data_size-Stack_Size { ; RW data
  65. #else
  66. RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
  67. #endif
  68. .ANY (+RW +ZI)
  69. * (DataQuickAccess)
  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. #if (defined(__heap_noncacheable__))
  78. RW_m_ncache m_ncache_start m_ncache_size - Heap_Size { ; ncache data
  79. #else
  80. RW_m_ncache m_ncache_start m_ncache_size { ; ncache data
  81. #endif
  82. * (NonCacheable.init)
  83. * (*NonCacheable)
  84. }
  85. #if (defined(__heap_noncacheable__))
  86. ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
  87. }
  88. RW_m_ncache_unused +0 EMPTY m_ncache_size-ImageLength(RW_m_ncache)-Heap_Size { ; Empty region added for MPU configuration
  89. #else
  90. RW_m_ncache_unused +0 EMPTY m_ncache_size-ImageLength(RW_m_ncache) { ; Empty region added for MPU configuration
  91. #endif
  92. }
  93. #if (defined(__use_shmem__))
  94. RPMSG_SH_MEM m_rpmsg_sh_mem_start UNINIT m_rpmsg_sh_mem_size { ; Shared memory used by RPMSG
  95. * (rpmsg_sh_mem_section)
  96. }
  97. RPMSG_SH_MEM_unused +0 EMPTY m_rpmsg_sh_mem_size-ImageLength(RPMSG_SH_MEM) { ; Empty region added for MPU configuration
  98. }
  99. #endif
  100. }