ch.icf 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*###ICF### Section handled by ICF editor, don't touch! ****/
  2. /*-Editor annotation file-*/
  3. /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
  4. /*-Specials-*/
  5. define symbol __ICFEDIT_intvec_start__ = 0x08000000;
  6. /*-Memory Regions-*/
  7. define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
  8. define symbol __ICFEDIT_region_ROM_end__ = 0x0803FFFF;
  9. define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
  10. define symbol __ICFEDIT_region_RAM_end__ = 0x20009FFF;
  11. /*-Sizes-*/
  12. define symbol __ICFEDIT_size_cstack__ = 0x400; /* Size of the process stack */
  13. define symbol __ICFEDIT_size_heap__ = 0x100; /* Used to mark heap (heap + sysheap) maximum size limit */
  14. /**** End of ICF editor section. ###ICF###*/
  15. /* Size of the IRQ Stack (Main Stack).*/
  16. define symbol __ICFEDIT_size_irqstack__ = 0x400;
  17. define memory mem with size = 4G;
  18. define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
  19. define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
  20. define block IRQSTACK with alignment = 8, size = __ICFEDIT_size_irqstack__, fixed order { };
  21. define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__, fixed order {section CSTACK};
  22. define block DATABSS with alignment = 8, fixed order {readwrite, zeroinit};
  23. define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__, fixed order {section HEAP};
  24. define block SYSHEAP with alignment = 8 {section SYSHEAP};
  25. initialize by copy {readwrite};
  26. do not initialize {section .noinit};
  27. keep { section .intvec };
  28. place at address mem:__ICFEDIT_intvec_start__ {readonly section .intvec};
  29. place in ROM_region {readonly};
  30. place at start of RAM_region {block IRQSTACK}; /* Main stack which becomes IRQ stack */
  31. place in RAM_region {block CSTACK}; /* Process stack */
  32. place in RAM_region {block DATABSS}; /* Textdata region */
  33. place in RAM_region {block HEAP}; /* Sys Heap size limit marker */
  34. place at end of RAM_region {block SYSHEAP}; /* Sys Heap available for allocations */
  35. /* Define stack and memory addresses for kernel usage */
  36. define exported symbol __main_stack_base__ = __ICFEDIT_region_RAM_start__;
  37. define exported symbol __main_stack_end__ = __main_stack_base__ + __ICFEDIT_size_irqstack__; /* Note: End refers to empty stack */
  38. define exported symbol __process_stack_base__ = __main_stack_end__;
  39. define exported symbol __main_thread_stack_base__ = __process_stack_base__; /* Note: Main thread uses process stack */
  40. define exported symbol __process_stack_end__ = __process_stack_base__ + __ICFEDIT_size_cstack__;