MIMXRT1052xxxxx_ram.scf 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #! armcc -E
  2. /*
  3. ** ###################################################################
  4. ** Processors: MIMXRT1052CVJ5B
  5. ** MIMXRT1052CVL5B
  6. ** MIMXRT1052DVJ6B
  7. ** MIMXRT1052DVL6B
  8. **
  9. ** Compiler: Keil ARM C/C++ Compiler
  10. ** Reference manual: IMXRT1050RM Rev.1, 03/2018
  11. ** Version: rev. 1.0, 2018-09-21
  12. ** Build: b180921
  13. **
  14. ** Abstract:
  15. ** Linker file for the Keil ARM C/C++ Compiler
  16. **
  17. ** Copyright 2016 Freescale Semiconductor, Inc.
  18. ** Copyright 2016-2018 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 0x0001FC00
  32. #define m_data_start 0x20000000
  33. #define m_data_size 0x00020000
  34. #define m_data2_start 0x20200000
  35. #define m_data2_size 0x00040000
  36. /* Sizes */
  37. #if (defined(__stack_size__))
  38. #define Stack_Size __stack_size__
  39. #else
  40. #define Stack_Size 0x0400
  41. #endif
  42. #if (defined(__heap_size__))
  43. #define Heap_Size __heap_size__
  44. #else
  45. #define Heap_Size 0x0400
  46. #endif
  47. LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
  48. VECTOR_ROM m_interrupts_start FIXED m_interrupts_size { ; load address = execution address
  49. * (RESET,+FIRST)
  50. }
  51. ER_m_text m_text_start FIXED m_text_size { ; load address = execution address
  52. * (InRoot$$Sections)
  53. .ANY (+RO)
  54. }
  55. RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
  56. .ANY (+RW +ZI)
  57. * (NonCacheable.init)
  58. * (NonCacheable)
  59. }
  60. ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
  61. }
  62. ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
  63. }
  64. }