cancel
Showing results for 
Search instead for 
Did you mean: 

PC Drivers & Software

alagal
Journeyman III

Error "SYS_CARRIER_NAME was not declared in this scope" importing smk24kd240 project in Vitis IDE

I am trying to run a project in Vitis IDE 2023.1 but am getting several errors with variables that are not being declared, although it's a downloaded project that should work fine as it is.

The project is called "smk24kd240_1.41" and is offered by QDesys (I have downloaded it from here)(if username and password is asked it's "guest" in both). The board I am using is Kria KD240 Drives Started Kit.

What I have done is open Vitis IDE 2023.1 and create a new platform project importing the Hardware source "design_1_wrapper.xsa" located in the downloaded folder. After that, I have created a new Application Project with a blank C++ project and importing all the files located in /smk24kd240/smk24kd240.vitis/motor_control_agent/src.

When I try to build the Application Project, two errors appear indicating that the variables "SYS_CARRIER_NAME" and "XPAR_FPGA_CLOCK_FREQ_HZ" are not declared in this scope. I have been wondering around and trying to see where the error is and I have seen in file "board.h" that there are some variables that are not declared and are needed in order to assign a value to the variables mentioned in the error.

 

#if !defined(SYS_CARRIER_IDENT)
    #warning "System Carrier Ident not defined"
#endif

#if SYS_CARRIER_IDENT == 1
    #define SYS_CARRIER_LYR178 1
    #define SYS_CARRIER_NAME "LYR178"
#endif

#if SYS_CARRIER_IDENT == 2
    #define SYS_CARRIER_SP605  1
    #define SYS_CARRIER_NAME "SP605"
#endif

#if SYS_CARRIER_IDENT == 3
    #define SYS_CARRIER_LX150T 1
    #define SYS_CARRIER_NAME "LX150T"
#endif

#if SYS_CARRIER_IDENT == 4
    #define SYS_CARRIER_LX75T 1
    #define SYS_CARRIER_NAME "LX75T"
#endif

#if SYS_CARRIER_IDENT == 5
    #define SYS_CARRIER_KC705 1
    #define SYS_CARRIER_NAME "KC705"
#endif

#if SYS_CARRIER_IDENT == 6
    #define SYS_CARRIER_ZC702 1
    #define SYS_CARRIER_NAME "ZC702"
#endif

#if SYS_CARRIER_IDENT == 7
    #define SYS_CARRIER_ZEDBOARD 1
    #define SYS_CARRIER_NAME "ZedBoard"
#endif

#if SYS_CARRIER_IDENT == 8
    #define SYS_CARRIER_TE0720 1
    #define SYS_CARRIER_NAME "TE0720"
#endif

#if SYS_CARRIER_IDENT == 9
    #define SYS_CARRIER_MICROZED 1
    #define SYS_CARRIER_NAME "MicroZed"
#endif

#if SYS_CARRIER_IDENT == 10
    #define SYS_CARRIER_PICOZED 1
    #define SYS_CARRIER_NAME "PicoZed"
#endif

#if SYS_CARRIER_IDENT == 11
    #define SYS_CARRIER_ZYBO 1
    #define SYS_CARRIER_NAME "ZYBO"
#endif

#if SYS_CARRIER_IDENT == 12
    #define SYS_CARRIER_ARTY 1
    #define SYS_CARRIER_NAME "Arty"
#endif

#if SYS_CARRIER_IDENT == 13
    #define SYS_CARRIER_QINVSIC 1
    #define SYS_CARRIER_NAME "QinvSiC"
#endif

#if SYS_CARRIER_IDENT == 14
    #define SYS_CARRIER_ARTYZ7 1
    #define SYS_CARRIER_NAME "ArtyZ7"
#endif

#if SYS_CARRIER_IDENT == 15
    #define SYS_CARRIER_ULTRAZED 1
    #define SYS_CARRIER_NAME "UltraZed"
#endif

#if SYS_CARRIER_IDENT == 16
    #define SYS_CARRIER_CORAZ7 1
    #define SYS_CARRIER_NAME "CoraZ7"
#endif

#if SYS_CARRIER_IDENT == 17
    #define SYS_CARRIER_MINIZED 1
    #define SYS_CARRIER_NAME "MiniZed"
#endif

#if SYS_CARRIER_IDENT == 18
    #define SYS_CARRIER_TOPICURP 1
    #define SYS_CARRIER_NAME "TopicURP"
#endif

#if SYS_CARRIER_IDENT == 19
    #define SYS_CARRIER_TE0820 1
    #define SYS_CARRIER_NAME "TE0820"
#endif

#if SYS_CARRIER_IDENT == 20
    #define SYS_CARRIER_TE0821 1
    #define SYS_CARRIER_NAME "TE0821"
#endif

#if SYS_CARRIER_IDENT == 21
    #define SYS_CARRIER_TE0818 1
    #define SYS_CARRIER_NAME "TE0818"
#endif

#if SYS_CARRIER_IDENT == 22 #define SYS_CARRIER_SMK24 1 #define SYS_CARRIER_NAME "SM-K24" #endif

 

where "SYS_CARRIER_IDENT" is not declared (the same happens with "XPAR_FPGA_CLOCK_FREQ_HZ").

I am guessing that there are library files missing that are needed in order to build the project properly, and I have tried reaching out to QDesys for support but I haven't had any answers yet.

Has anybody had the same issue? And if so, has anybody figured out what's wrong or how to solve the problem?

Thanks!

0 Likes
0 Replies