link.icf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*###ICF### Section handled by ICF editor, don't touch! ****/
  2. /*-Editor annotation file-*/
  3. /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_1.xml" */
  4. /*-Specials-*/
  5. define symbol __ICFEDIT_intvec_start__ = 0x08000000;
  6. /*-Memory Regions-*/
  7. define symbol __ICFEDIT_region_IROM1_start__ = 0x08000000;
  8. define symbol __ICFEDIT_region_IROM1_end__ = 0x081FFFFF;
  9. define symbol __ICFEDIT_region_IRAM1_start__ = 0x20000000;
  10. define symbol __ICFEDIT_region_IRAM1_end__ = 0x2002FFFF;
  11. define symbol __ICFEDIT_region_IRAM2_start__ = 0x20030000;
  12. define symbol __ICFEDIT_region_IRAM2_end__ = 0x2003FFFF;
  13. /*-Sizes-*/
  14. define symbol __ICFEDIT_size_cstack__ = 0x2000;
  15. define symbol __ICFEDIT_size_heap__ = 0x000;
  16. /**** End of ICF editor section. ###ICF###*/
  17. define symbol IRAM3_region_start = 0x20040000;
  18. define symbol IRAM3_region_end = 0x2009FFFF;
  19. define memory mem with size = 4G;
  20. define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM1_end__];
  21. define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM1_end__]
  22. | mem:[from __ICFEDIT_region_IRAM2_start__ to __ICFEDIT_region_IRAM2_end__]
  23. | mem:[from IRAM3_region_start to IRAM3_region_end ];
  24. define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
  25. define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
  26. initialize by copy { readwrite };
  27. if (isdefinedsymbol(__USE_DLIB_PERTHREAD))
  28. {
  29. // Required in a multi-threaded application
  30. initialize by copy with packing = none { section __DLIB_PERTHREAD };
  31. }
  32. place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
  33. place in IROM_region { readonly };
  34. place in IRAM_region { readwrite, block CSTACK, block HEAP };