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.

Compiler/TMS320F28377D: Undefined first referenced HVACI_Sensorless_28377D

Part Number: TMS320F28377D
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: TI C/C++ Compiler

Dear TI Hello,

I am working on the migration code of the HVACI_sensorless floating point from the F28335 to the F28377D,

I couldn't understand why the compiler told me undefined referenced of the A0,B0,...even if functions are defined in the same file,

// Alpha states
void A0(void);	//state A0
void B0(void);	//state B0
void C0(void);	//state C0

// A branch states
void A1(void);	//state A1
void A2(void);	//state A2
void A3(void);	//state A3

// B branch states
void B1(void);	//state B1
void B2(void);	//state B2
void B3(void);	//state B3

// C branch states
void C1(void);	//state C1
void C2(void);	//state C2
void C3(void);	//state C3

// Variable declarations
void (*Alpha_State_Ptr)(void);	// Base States pointer
void (*A_Task_Ptr)(void);		// State pointer A branch
void (*B_Task_Ptr)(void);		// State pointer B branch
void (*C_Task_Ptr)(void);		// State pointer C branch
// Tasks State-machine init
	Alpha_State_Ptr = &A0;
	A_Task_Ptr = &A1;
	B_Task_Ptr = &B1;
	C_Task_Ptr = &C1;

console output:

warning #10247-D: creating output section "DLOG" without a SECTIONS specification

undefined first referenced

symbol in file

--------- ----------------

_A0 ./HVACI_Sensorless.obj

_A1 ./HVACI_Sensorless.obj

_B1 ./HVACI_Sensorless.obj

_C1 ./HVACI_Sensorless.obj

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "HVACI_Sensorless_28377D.out" not built

  • You may check if you defined the A0(), A1().. functions in the source file or there are other typos in the file, that's not dependent on device, it's the coding and compiling error.

    You may have a look at below project in controlSUITE that designed on F2837x.
    C:\ti\controlSUITE\development_kits\TMDSIDDK_v2.0\IDDK_PM_Servo_F2837x_v2_00_00_00