Erika Accessing Data Scratch Pad Ram in Multicore

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
amitdey1314
Newbie
Posts: 16
Joined: Tue Mar 22, 2016 6:37 pm

Erika Accessing Data Scratch Pad Ram in Multicore

Post by amitdey1314 » Mon May 30, 2016 1:21 pm

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.


amitdey1314
Newbie
Posts: 16
Joined: Tue Mar 22, 2016 6:37 pm

Re: Erika Accessing Data Scratch Pad Ram in Multicore

Post by amitdey1314 » Mon May 30, 2016 2:22 pm

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.

amitdey1314
Newbie
Posts: 16
Joined: Tue Mar 22, 2016 6:37 pm

Re: Erika Accessing Data Scratch Pad Ram in Multicore

Post by amitdey1314 » Mon May 30, 2016 2:26 pm

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??

Post Reply