Page 1 of 1

Erika Accessing Data Scratch Pad Ram in Multicore

Posted: Mon May 30, 2016 1:21 pm
by amitdey1314
Hello,

Does anyone knows how to Access the Data Scratch Pad ram of one core from another core. I observed that Erika generates 3 different linker script file for the 3 different cores. So, if i try to read a variable stored in DSPR of core0 from core1, it throws an error saying that undefined reference to that variable. I also had declared that variable as an extern in core1.

Can anyone please help.

Re: Erika Accessing Data Scratch Pad Ram in Multicore

Posted: Mon May 30, 2016 1:48 pm
by e.guidieri

Re: Erika Accessing Data Scratch Pad Ram in Multicore

Posted: Mon May 30, 2016 2:22 pm
by amitdey1314
First of all thank you for such a quick Suggestion. I read the article but still having some doubts. There they suggested to include an EXPORT functionality. I saw the Options as
1) EXPORT FUNCTION
2) EXPORT OBJECT
3) EXPORT_FILE

I wish to Access a variable that is stored in core0 DSPR from Core1. So, do i write as

CPU_DATA = TRICORE {
ID = "master";
...
COMPILER_TYPE = GNU {
EXPORT OBJECT = "variable";
};
...
};

to Access the variable 'variable'??

Thanking in advance.

Re: Erika Accessing Data Scratch Pad Ram in Multicore

Posted: Mon May 30, 2016 2:26 pm
by amitdey1314
I realised that i have to write an Export file where the variables can be declared. And this Export file has to be provided in the oil file.

Could you please tell what will be the Extension of the Export file??