Advertisement
PecaJ

linker_script.ld

Nov 4th, 2023
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. _main_stack_pointer_value = 0x20002800;
  2.  
  3. MEMORY
  4. {
  5. FLASH(rx) : ORIGIN = 0x08000000, LENGTH = 32K
  6. SRAM(rwx) : ORIGIN = 0x20000000, LENGTH = 10K
  7. }
  8.  
  9. SECTIONS
  10. {
  11. .vector_table :
  12. {
  13. *(.vector_table)
  14. } > FLASH
  15.  
  16. .text :
  17. {
  18. *(.text)
  19. *(.text*)
  20. } > FLASH
  21.  
  22. .rodata :
  23. {
  24. *(.rodata)
  25. *(.rodata*)
  26. } > FLASH
  27.  
  28. .data :
  29. {
  30. _vma_data_start = .;
  31. *(.data)
  32. *(.data*)
  33. _vma_data_end = .;
  34. } > SRAM AT> FLASH
  35. _lma_data_start = LOADADDR(.data);
  36.  
  37. .bss :
  38. {
  39. *(.bss)
  40. *(.bss*)
  41. *(COMMON)
  42. } > SRAM
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement