memory.x 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. MEMORY
  2. {
  3. /* NOTE 1 K = 1 KiBi = 1024 bytes */
  4. /* TODO Adjust these memory regions to match your device memory layout */
  5. /* These values correspond to the LM3S6965, one of the few devices QEMU can emulate */
  6. FLASH : ORIGIN = 0x00000000, LENGTH = 256K
  7. RAM : ORIGIN = 0x20000000, LENGTH = 48K
  8. }
  9. /* This is where the call stack will be allocated. */
  10. /* The stack is of the full descending type. */
  11. /* You may want to use this variable to locate the call stack and static
  12. variables in different memory regions. Below is shown the default value */
  13. /* _stack_start = ORIGIN(RAM) + LENGTH(RAM); */
  14. /* You can use this symbol to customize the location of the .text section */
  15. /* If omitted the .text section will be placed right after the .vector_table
  16. section */
  17. /* This is required only on microcontrollers that store some configuration right
  18. after the vector table */
  19. /* _stext = ORIGIN(FLASH) + 0x400; */
  20. /* Example of putting non-initialized variables into custom RAM locations. */
  21. /* This assumes you have defined a region RAM2 above, and in the Rust
  22. sources added the attribute `#[link_section = ".ram2bss"]` to the data
  23. you want to place there. */
  24. /* Note that the section will not be zero-initialized by the runtime! */
  25. /* SECTIONS {
  26. .ram2bss (NOLOAD) : ALIGN(4) {
  27. *(.ram2bss);
  28. . = ALIGN(4);
  29. } > RAM2
  30. } INSERT AFTER .bss;
  31. */