Split processing and memory onto sepeate cores

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
j_g
Employee
Employee
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.
0 Likes
2 Replies
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
The are few ways of which here are two:

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
0 Likes
j_g
Employee
Employee
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!
0 Likes