link.icf 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*###ICF### Section handled by ICF editor, don't touch! ****/
  2. /*-Editor annotation file-*/
  3. /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_4.xml" */
  4. /*-Specials-*/
  5. define symbol __ICFEDIT_intvec_start__ = 0x08000000;
  6. /*-Memory Regions-*/
  7. define symbol __ICFEDIT_region_IROM_start__ = 0x08000000;
  8. define symbol __ICFEDIT_region_IROM_end__ = 0x0001FFFF;
  9. define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
  10. define symbol __ICFEDIT_region_IRAM_end__ = 0x20004FFF;
  11. /*-Sizes-*/
  12. define symbol __ICFEDIT_size_cstack__ = 0x0800;
  13. define symbol __ICFEDIT_size_proc_stack__ = 0x0;
  14. define symbol __ICFEDIT_size_heap__ = 0x0800;
  15. /**** End of ICF editor section. ###ICF###*/
  16. define memory mem with size = 4G;
  17. define region IROM_region = mem:[from __ICFEDIT_region_IROM_start__ to __ICFEDIT_region_IROM_end__];
  18. define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFEDIT_region_IRAM_end__];
  19. define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
  20. define block PROC_STACK with alignment = 8, size = __ICFEDIT_size_proc_stack__ { };
  21. define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
  22. do not initialize { section .noinit };
  23. initialize by copy { readwrite };
  24. if (isdefinedsymbol(__USE_DLIB_PERTHREAD))
  25. {
  26. // Required in a multi-threaded application
  27. initialize by copy with packing = none { section __DLIB_PERTHREAD };
  28. }
  29. place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
  30. place in IROM_region { readonly };
  31. place in IRAM_region { readwrite, block CSTACK, block PROC_STACK, block HEAP };