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.

Undefined symbol - first referenced in file

Other Parts Discussed in Thread: AFE031

Hi

I'am using TMS320C2000 Developer's Kit. I've imported in CCSv6 a G3 PHY Test example and i've modified it. When I build the project the following errors occur:

undefined first referenced

>> Compilation failure
symbol in file
--------- ----------------
_PHY_rxPpduStart ./main.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "g328069_1.out" not built
gmake: *** [g328069_1.out] Error 1
gmake: Target `all' not remade because of errors.

I think the error is caused by the absence of a declaration in a library, specifically "phy_vcu_afe031.lib". Infact in the header file phy_rx.h there are the following function prototypes:

PHY_status_t PHY_rxInit(void); 
PHY_status_t PHY_rxStart(UINT16 timeOut, PHY_cbFunc_t cb_p); 
PHY_status_t PHY_rxSuspend(PHY_cbFunc_t cb_p);
PHY_status_t PHY_rxResume(void);
PHY_status_t PHY_rxPpduStart(PHY_cbFunc_t cb_p);
PHY_status_t PHY_rxPpduStop(void);
PHY_status_t PHY_rxPpduRelease(PHY_rxPpdu_t *ppdu_p);
PHY_status_t PHY_rxSet(UINT16 setType, PHY_rxSetData_t *setData_p);
PHY_status_t PHY_rxGet(UINT16 getType, PHY_rxGetData_t *getData_p);
PHY_status_t PHY_rxGetStat(PHY_rx_stat_t *getData_p);
PHY_status_t PHY_rxSmRun(PHY_rxProc_t procType);
PHY_status_t PHY_rxBitStartIndicate(PHY_cbFunc_t cb_p); 
PHY_status_t PHY_rxPhyTimingIndicate(PHY_cbFunc_t cb_p);

I can find in phy_vcu_afe031.lib lines like this:

PHY_rxInit T:/csa_group_emeter/dspsrdc_csa/emeter/dsp_c28x/G3/src/phy/rx/phy_rx_main.c ...   and other symbols that i can't decode in a text file.

And so for each function listed in phy_rx.h, except for PHY_rxPpduStart(), and this remind the symbol involved in error #10234-D.

Could anyone help me to fix this problem or tell me where i can find a library that includes PHY_rx_PpduStart?

Regards.

  • Hi, Antonio.

    judging by the name of the output file ("g328069_1.out") it is something of my early experiments ;-). Perhaps some paths to includings were corrupted when import. Download this project g3_1.zip   and try the following:

    1. Project -> Import Existing CCS/CCE Eclipse Project
    2. Change the radio button selection at the top to "Select archive file"
    3. Browse to and select your archive file
    4. It will list all of the projects found in the archive. The are all selected by default. Select the ones you want and click "Finish"
    5. The project is now in your workspace

    Regards,

    Igor

  • Hi, Igor.

    I downloaded the project and it's exactly the same that I'm already using. I suspect (really i'm quite sure) that the problem is in 'phy_vcu_afe031.lib" because I can't find in this library the symbol _PHY_rxPpduStart, but I can find _PHY_rxPpduInit, _PHY_rxPpduStop and so on. Could you suggest me where I can find a library which contains that symbol?

    Regards,

    Antonio