at91sam9260_ram.icf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //------------------------------------------------------------------------------
  2. // Linker scatter for running in external SDRAM on the AT91SAM9260
  3. //------------------------------------------------------------------------------
  4. //
  5. // Define a memory region that covers the entire 4 GB addressible space of the
  6. // processor.
  7. //
  8. define memory mem with size = 4G;
  9. //
  10. // Define a region for the on-chip flash.
  11. //
  12. define region FLASH = mem:[from 0x20000000 to 0x207FFFFF];
  13. //
  14. // Define a region for the on-chip SRAM.
  15. //
  16. define region SRAM = mem:[from 0x20800000 to 0x23FFFFFF];
  17. //
  18. // Indicate that the read/write values should be initialized by copying from
  19. // flash.
  20. //
  21. initialize by copy { readwrite };
  22. //
  23. // Indicate that the noinit values should be left alone. This includes the
  24. // stack, which if initialized will destroy the return address from the
  25. // initialization code, causing the processor to branch to zero and fault.
  26. //
  27. do not initialize { section .noinit };
  28. //
  29. // Place the interrupt vectors at the start of flash.
  30. //
  31. place at start of FLASH { readonly section .intvec };
  32. //
  33. // Place the remainder of the read-only items into flash.
  34. //
  35. place in FLASH { readonly };
  36. //
  37. // Place the RAM vector table at the start of SRAM.
  38. //
  39. place at start of SRAM { section VTABLE };
  40. //
  41. // Place all read/write items into SRAM.
  42. //
  43. place in SRAM { readwrite};
  44. keep { section FSymTab };
  45. keep { section VSymTab };
  46. keep { section .rti_fn* };