nuc472_flash.icf 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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__ = 0x00000000;
  6. /*-Memory Regions-*/
  7. define symbol __ICFEDIT_region_IROM1_start__ = 0x00000000;
  8. define symbol __ICFEDIT_region_IROM1_end__ = 0x0007FFFF;
  9. define symbol __ICFEDIT_region_IROM2_start__ = 0x0;
  10. define symbol __ICFEDIT_region_IROM2_end__ = 0x0;
  11. define symbol __ICFEDIT_region_EROM1_start__ = 0x0;
  12. define symbol __ICFEDIT_region_EROM1_end__ = 0x0;
  13. define symbol __ICFEDIT_region_EROM2_start__ = 0x0;
  14. define symbol __ICFEDIT_region_EROM2_end__ = 0x0;
  15. define symbol __ICFEDIT_region_EROM3_start__ = 0x0;
  16. define symbol __ICFEDIT_region_EROM3_end__ = 0x0;
  17. define symbol __ICFEDIT_region_IRAM1_start__ = 0x20000000;
  18. define symbol __ICFEDIT_region_IRAM1_end__ = 0x2000FFFF;
  19. define symbol __ICFEDIT_region_IRAM2_start__ = 0x0;
  20. define symbol __ICFEDIT_region_IRAM2_end__ = 0x0;
  21. define symbol __ICFEDIT_region_ERAM1_start__ = 0x60000000;
  22. define symbol __ICFEDIT_region_ERAM1_end__ = 0x6FFFFFFF;
  23. define symbol __ICFEDIT_region_ERAM2_start__ = 0x0;
  24. define symbol __ICFEDIT_region_ERAM2_end__ = 0x0;
  25. define symbol __ICFEDIT_region_ERAM3_start__ = 0x0;
  26. define symbol __ICFEDIT_region_ERAM3_end__ = 0x0;
  27. /*-Sizes-*/
  28. define symbol __ICFEDIT_size_cstack__ = 0x400;
  29. define symbol __ICFEDIT_size_heap__ = 0x0;
  30. /**** End of ICF editor section. ###ICF###*/
  31. define memory mem with size = 4G;
  32. define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM1_end__]
  33. | mem:[from __ICFEDIT_region_IROM2_start__ to __ICFEDIT_region_IROM2_end__];
  34. define region EROM_region = mem:[from __ICFEDIT_region_EROM1_start__ to __ICFEDIT_region_EROM1_end__]
  35. | mem:[from __ICFEDIT_region_EROM2_start__ to __ICFEDIT_region_EROM2_end__]
  36. | mem:[from __ICFEDIT_region_EROM3_start__ to __ICFEDIT_region_EROM3_end__];
  37. define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM1_end__]
  38. | mem:[from __ICFEDIT_region_IRAM2_start__ to __ICFEDIT_region_IRAM2_end__];
  39. define region ERAM_region = mem:[from __ICFEDIT_region_ERAM1_start__ to __ICFEDIT_region_ERAM1_end__]
  40. | mem:[from __ICFEDIT_region_ERAM2_start__ to __ICFEDIT_region_ERAM2_end__]
  41. | mem:[from __ICFEDIT_region_ERAM3_start__ to __ICFEDIT_region_ERAM3_end__];
  42. define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
  43. define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
  44. define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* };
  45. do not initialize { section .noinit };
  46. initialize by copy { readwrite };
  47. if (isdefinedsymbol(__USE_DLIB_PERTHREAD))
  48. {
  49. // Required in a multi-threaded application
  50. initialize by copy with packing = none { section __DLIB_PERTHREAD };
  51. }
  52. keep { section FSymTab };
  53. keep { section VSymTab };
  54. keep { section .rti_fn* };
  55. place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
  56. place in IROM_region { readonly, block RTT_INIT_FUNC };
  57. place in EROM_region { readonly section application_specific_ro };
  58. place in IRAM_region { readwrite, block CSTACK, block HEAP };
  59. place in ERAM_region { readwrite section application_specific_rw };