- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to change the heap size of XMC MCU using DAVE ... I tried to do that via the "linker_script.ld" file, but the size of the heap is defined as:
/* Heap - Bank1*/
Heap_Bank1_Size = Heap_Bank1_End - Heap_Bank1_Start;
I don't know where the numerical values of "Heap_Bank1_End" & "Heap_Bank1_Start" are defined
Can you please show where exactly in the linker_script.ld file I can change the stack/heap sizes?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you check the linker script in details, you could see commands like
Heap_Bank1_Start = .;
The special linker dot ` . ' variable always contains the current output location counter. So this is being used to calculate the start and end address. You can search for linker command language guides for GNU to understand more about this.
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @noureldin3010 ,
Can you let us know which XMC device you are using?
Can you share us your linker script so that we can try it out at our end.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nour,
Following is the section I have mentioned.
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you check the linker script in details, you could see commands like
Heap_Bank1_Start = .;
The special linker dot ` . ' variable always contains the current output location counter. So this is being used to calculate the start and end address. You can search for linker command language guides for GNU to understand more about this.
Best Regards,
Vasanth