msp432p401r.cmd 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2012 - 2018 Texas Instruments Incorporated - http://www.ti.com/
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the
  15. * distribution.
  16. *
  17. * Neither the name of Texas Instruments Incorporated nor the names of
  18. * its contributors may be used to endorse or promote products derived
  19. * from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. *
  33. * Default linker command file for Texas Instruments MSP432P401R
  34. *
  35. * File creation date: 01/26/18
  36. *
  37. *****************************************************************************/
  38. --retain=flashMailbox
  39. MEMORY
  40. {
  41. MAIN (RX) : origin = 0x00000000, length = 0x00040000
  42. INFO (RX) : origin = 0x00200000, length = 0x00004000
  43. #ifdef __TI_COMPILER_VERSION__
  44. #if __TI_COMPILER_VERSION__ >= 15009000
  45. ALIAS
  46. {
  47. SRAM_CODE (RWX): origin = 0x01000000
  48. SRAM_DATA (RW) : origin = 0x20000000
  49. } length = 0x00010000
  50. #else
  51. /* Hint: If the user wants to use ram functions, please observe that SRAM_CODE */
  52. /* and SRAM_DATA memory areas are overlapping. You need to take measures to separate */
  53. /* data from code in RAM. This is only valid for Compiler version earlier than 15.09.0.STS.*/
  54. SRAM_CODE (RWX): origin = 0x01000000, length = 0x00010000
  55. SRAM_DATA (RW) : origin = 0x20000000, length = 0x00010000
  56. #endif
  57. #endif
  58. }
  59. /* The following command line options are set as part of the CCS project. */
  60. /* If you are building using the command line, or for some reason want to */
  61. /* define them here, you can uncomment and modify these lines as needed. */
  62. /* If you are using CCS for building, it is probably better to make any such */
  63. /* modifications in your CCS project and leave this file alone. */
  64. /* */
  65. /* A heap size of 1024 bytes is recommended when you plan to use printf() */
  66. /* for debug output to the console window. */
  67. /* */
  68. /* --heap_size=1024 */
  69. /* --stack_size=512 */
  70. /* --library=rtsv7M4_T_le_eabi.lib */
  71. /* Section allocation in memory */
  72. SECTIONS
  73. {
  74. .intvecs: > 0x00000000
  75. .text : > MAIN
  76. .const : > MAIN
  77. .cinit : > MAIN
  78. .pinit : > MAIN
  79. .init_array : > MAIN
  80. .binit : {} > MAIN
  81. /* The following sections show the usage of the INFO flash memory */
  82. /* INFO flash memory is intended to be used for the following */
  83. /* device specific purposes: */
  84. /* Flash mailbox for device security operations */
  85. .flashMailbox : > 0x00200000
  86. /* TLV table for device identification and characterization */
  87. .tlvTable : > 0x00201000
  88. /* BSL area for device bootstrap loader */
  89. .bslArea : > 0x00202000
  90. .vtable : > 0x20000000
  91. .data : > SRAM_DATA
  92. .bss : > SRAM_DATA
  93. .sysmem : > SRAM_DATA
  94. .stack : > SRAM_DATA (HIGH)
  95. #ifdef __TI_COMPILER_VERSION__
  96. #if __TI_COMPILER_VERSION__ >= 15009000
  97. .TI.ramfunc : {} load=MAIN, run=SRAM_CODE, table(BINIT)
  98. #endif
  99. #endif
  100. }
  101. /* Symbolic definition of the WDTCTL register for RTS */
  102. WDTCTL_SYM = 0x4000480C;