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). 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!

New contributor

alagal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật