Dec 12, 2019
05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 12, 2019
05:46 AM
Hi,
I'm currently developing a medium large application using the TC275 starterkit. I've been developing the application in separate parts. Now that I want to combine these parts I find that I'm running out of memory. How do I assign variables to different sections of the memory associated with CPU0, CPU1...?
I'm using free entry tool chain and the BIFACES framework.
I'm currently developing a medium large application using the TC275 starterkit. I've been developing the application in separate parts. Now that I want to combine these parts I find that I'm running out of memory. How do I assign variables to different sections of the memory associated with CPU0, CPU1...?
I'm using free entry tool chain and the BIFACES framework.
- Tags:
- IFX
2 Replies
Dec 12, 2019
07:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 12, 2019
07:57 PM
The are few ways of which here are two:
you can use an __attribute__ in the definition
or #pragma
you can use an __attribute__ in the definition
uint32 __attribute__((section (".data_cpu2"))) myCpu2Data;
0x50000000 0x50000003 4 g myCpu2Data dsram2 .CPU2.data .data_cpu2
or #pragma
#pragma section ".data_cpu1"
uint32 myCpu1Data;
#pragma section
0x60001c64 0x60001c67 4 g myCpu1Data dsram1 .CPU1.data .data_cpu1
Dec 13, 2019
12:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 13, 2019
12:05 AM
Thanks for the fast reply!
So if I'm getting this right, the ".data_cpu2" and ".data_cpu1" are the memory regions described in the linker file?
This is exactly what I needed - thanks!
So if I'm getting this right, the ".data_cpu2" and ".data_cpu1" are the memory regions described in the linker file?
This is exactly what I needed - thanks!