Problem with using Shared variable in MultiCore Environment
Posted: Tue Jun 02, 2015 11:51 am
Hello~ all!
I'm using TC275 and ERIKA ENTERPRISE for my project.
I made a project with RT-Druid C/C++ Project Example -> tricore -> infineon_TriBoard-TC2X5_V2.0 ->Multicore automatic tests -> Multicore Spinlocks test.
However, When I tried to build this project, Compilation failed because shared variables didn't be referenced. Shared Variables are initialized in master.c code. and in shared.h, they are also initialized as extern values. So, I think that there is no problem with using shared variables in slave2.c or slave1.c. I cannot understand why this undefined reference error had occurred.
Can anyone please tell me how I can get through with this problem?
I'm using TC275 and ERIKA ENTERPRISE for my project.
I made a project with RT-Druid C/C++ Project Example -> tricore -> infineon_TriBoard-TC2X5_V2.0 ->Multicore automatic tests -> Multicore Spinlocks test.
However, When I tried to build this project, Compilation failed because shared variables didn't be referenced. Shared Variables are initialized in master.c code. and in shared.h, they are also initialized as extern values. So, I think that there is no problem with using shared variables in slave2.c or slave1.c. I cannot understand why this undefined reference error had occurred.
Can anyone please tell me how I can get through with this problem?