MIMXRT1176xxxxx_cm7_sdram.scf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #!armclang --target=arm-arm-none-eabi -mcpu=cortex-m7 -E -x c
  2. /*
  3. ** ###################################################################
  4. ** Processors: MIMXRT1176AVM8A_cm7
  5. ** MIMXRT1176CVM8A_cm7
  6. ** MIMXRT1176DVMAA_cm7
  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 0x00000000
  28. #define m_interrupts_size 0x00000400
  29. #define m_text_start 0x00000400
  30. #define m_text_size 0x0003FC00
  31. #define m_data_start 0x80000000
  32. #define m_data_size 0x03000000
  33. #define m_data2_start 0x20000000
  34. #define m_data2_size 0x00040000
  35. #define m_data3_start 0x202C0000
  36. #define m_data3_size 0x00080000
  37. #define m_ncache_start 0x83000000
  38. #define m_ncache_size 0x01000000
  39. /* Sizes */
  40. #if (defined(__stack_size__))
  41. #define Stack_Size __stack_size__
  42. #else
  43. #define Stack_Size 0x0400
  44. #endif
  45. #if (defined(__heap_size__))
  46. #define Heap_Size __heap_size__
  47. #else
  48. #define Heap_Size 0x0400
  49. #endif
  50. LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
  51. VECTOR_ROM m_interrupts_start FIXED m_interrupts_size { ; load address = execution address
  52. * (.isr_vector,+FIRST)
  53. }
  54. ER_m_text m_text_start FIXED m_text_size { ; load address = execution address
  55. * (InRoot$$Sections)
  56. * (CodeQuickAccess)
  57. .ANY (+RO)
  58. }
  59. VECTOR_RAM m_interrupts_start EMPTY 0 {
  60. }
  61. #if (defined(__heap_noncacheable__))
  62. RW_m_data m_data_start m_data_size-Stack_Size { ; RW data
  63. #else
  64. RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
  65. #endif
  66. .ANY (+RW +ZI)
  67. *(*m_usb_dma_init_data)
  68. *(*m_usb_dma_noninit_data)
  69. }
  70. #if (!defined(__heap_noncacheable__))
  71. ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
  72. }
  73. #endif
  74. ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
  75. }
  76. RW_m_data2 m_data2_start m_data2_size { ;
  77. * (DataQuickAccess)
  78. }
  79. #if (defined(__heap_noncacheable__))
  80. RW_m_ncache m_ncache_start m_ncache_size - Heap_Size { ; ncache data
  81. #else
  82. RW_m_ncache m_ncache_start m_ncache_size { ; ncache data
  83. #endif
  84. * (NonCacheable.init)
  85. * (*NonCacheable)
  86. }
  87. #if (defined(__heap_noncacheable__))
  88. ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
  89. }
  90. RW_m_ncache_unused +0 EMPTY m_ncache_size-ImageLength(RW_m_ncache)-Heap_Size { ; Empty region added for MPU configuration
  91. #else
  92. RW_m_ncache_unused +0 EMPTY m_ncache_size-ImageLength(RW_m_ncache) { ; Empty region added for MPU configuration
  93. #endif
  94. }
  95. }