nrf52840_s140_v6_extrafs.ld 824 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Linker script to configure memory regions. */
  2. SEARCH_DIR(.)
  3. GROUP(-lgcc -lc -lnosys)
  4. MEMORY
  5. {
  6. FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0xD4000 - 0x26000
  7. /* SRAM required by Softdevice depend on
  8. * - Attribute Table Size (Number of Services and Characteristics)
  9. * - Vendor UUID count
  10. * - Max ATT MTU
  11. * - Concurrent connection peripheral + central + secure links
  12. * - Event Len, HVN queue, Write CMD queue
  13. */
  14. RAM (rwx) : ORIGIN = 0x20006000, LENGTH = 0x20040000 - 0x20006000
  15. }
  16. SECTIONS
  17. {
  18. . = ALIGN(4);
  19. .svc_data :
  20. {
  21. PROVIDE(__start_svc_data = .);
  22. KEEP(*(.svc_data))
  23. PROVIDE(__stop_svc_data = .);
  24. } > RAM
  25. .fs_data :
  26. {
  27. PROVIDE(__start_fs_data = .);
  28. KEEP(*(.fs_data))
  29. PROVIDE(__stop_fs_data = .);
  30. } > RAM
  31. } INSERT AFTER .data;
  32. INCLUDE "nrf52_common.ld"