This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
I've tried to add cla to my current project. In main.c, i declare variables as:
#pragma DATA_SECTION("CpuToCla1MsgRAM") float32_t fVal; #pragma DATA_SECTION("Cla1ToCpuMsgRAM") float32_t fResult1; #pragma DATA_SECTION("Cla1ToCpuMsgRAM") float32_t fResult2;
In cla_shared.h:
// // Globals // extern float fVal; // Task 1 (C) Variables extern float fResult1; //Task 2 (C) Variables extern float fResult2;
However, when using these variables in .cla file, i got the error:
undefined first referenced
symbol in file
--------- ----------------
_fResult1 ./sourceFiles/cla_asin.obj
_fVal ./sourceFiles/cla_asin.obj
I found that only .cla file couldn't access to these variables. Please help me.