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.

TMS320F28379D: Unresolved symbol, first referenced in cla file

Part Number: TMS320F28379D

Hi all,

I've tried to add cla to my current project. In main.c, i declare variables as:

 

Fullscreen
1
2
3
4
5
6
#pragma DATA_SECTION("CpuToCla1MsgRAM")
float32_t fVal;
#pragma DATA_SECTION("Cla1ToCpuMsgRAM")
float32_t fResult1;
#pragma DATA_SECTION("Cla1ToCpuMsgRAM")
float32_t fResult2;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In cla_shared.h:

Fullscreen
1
2
3
4
5
6
7
8
9
10
//
// Globals
//
extern float fVal;
// Task 1 (C) Variables
extern float fResult1;
//Task 2 (C) Variables
extern float fResult2;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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.