SAMA5D2ddr.ld 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /*
  14. * SAMA5D2 memory setup in trusted mode.
  15. */
  16. MEMORY
  17. {
  18. flash : org = 0x27000000, len = 1M
  19. ram0 : org = 0x27100000, len = 13M
  20. ram1 : org = 0x27E00000, len = 1M
  21. ram2 : org = 0x27F00000, len = 1M
  22. ram3 : org = 0x00000000, len = 0
  23. ram4 : org = 0x00000000, len = 0
  24. ram5 : org = 0x00000000, len = 0
  25. ram6 : org = 0x00000000, len = 0
  26. ram7 : org = 0x00000000, len = 0
  27. }
  28. /* RAM region to be used for stacks. This stack accommodates the processing
  29. of all exceptions and interrupts*/
  30. REGION_ALIAS("STACKS_RAM", ram0);
  31. /* RAM region to be used for data segment.*/
  32. REGION_ALIAS("DATA_RAM", ram0);
  33. /* RAM region to be used for BSS segment.*/
  34. REGION_ALIAS("BSS_RAM", ram0);
  35. /* RAM region to be used for lcd frame buffer. */
  36. REGION_ALIAS("FB_RAM", ram1);
  37. /* RAM region to be used for no cache area. */
  38. REGION_ALIAS("NO_CACHE", ram2);
  39. SECTIONS
  40. {
  41. /* Special section for frame buffer area.*/
  42. .fbram (NOLOAD) : ALIGN(4)
  43. {
  44. __fbram_base__ = .;
  45. *(.fbram)
  46. *(.fbram.*)
  47. *(.bss.__fbram_*)
  48. . = ALIGN(4);
  49. __fbram_end__ = .;
  50. } > FB_RAM
  51. /* Special section for no cache area.*/
  52. .nocache (NOLOAD) : ALIGN(4)
  53. {
  54. __nocache_base__ = .;
  55. *(.nocache)
  56. *(.nocache.*)
  57. *(.bss.__nocache_*)
  58. . = ALIGN(4);
  59. __nocache_end__ = .;
  60. } > NO_CACHE
  61. }
  62. INCLUDE rules.ld
  63. ENTRY(Boot_Handler);