Arty Z7 Out of Box Demo 예제를 다운로드 받아 Web 설명대로 board에 심었을 때 정상 동작을 확인.

아래 링크에서 다운로드 가능함.

개발 환경은 Windows 10 pro, Vitis 2021.2 사용

Digilent 예제는 최신 버전인 Arty Z7-20 Out-of-Box Demo Xilinx Tools 2020.1 pre-release code를 사용함.

 

Arty Z7 - Digilent Reference

 

Arty Z7 - Digilent Reference

 

digilent.com

 

Vitis에서 [import sources]를 통해 예제 source code를 전부 추가하고 [Build project]를 실행했을 때 2개의 error가 발생함.

1. AudioPWM - audiopwm.c [line 97] sin 함수 호출

  line 58에서 math.h를 포함 시키고 있으나, sin 함수가 선언되지 않았다며 compile error 발생

  해결방법

    Project explorer에서 Application 속성으로 들어가 [C/C++ Build] - [Setting] - [ARM v7 gcc linkers] - [Libraries] 선택 후 [Enter Value]에서 'm' 입력하고 저장하면 error 없어짐.

2. AudioPWM - audiopwm.h [line 114] Audio_BitField의 다중 선언

  아직 해결 방법을 찾지 못함. Workspace 단위내에서 Audio_BitField 변수는 audiopwm.h에 union으로 1곳만 선언됨.

  다만 Search 결과를 보면 audiopwm.h에서 line 114를 2번 찾은 것으로 인식하고 있음.

참조 링크 (내용 분석 중)

  ▷ GCC version 문제라는 이야기 인 듯 하며, compile flag 추가로 해결할 수 있다는 이야기인데...

       추가할 위치를 찾지 못하고 있음.

Multiple definition of ... first defined here (xilinx.com)

 

Multiple definition of ... first defined here

 

support.xilinx.com

Porting to GCC 10 - GNU Project

 

Porting to GCC 10 - GNU Project

The GCC 10 release series differs from previous GCC releases in a number of ways. Some of these are a result of bug fixing, and some old behaviors have been intentionally changed to support new standards, or relaxed in standards-conforming ways to facilita

gcc.gnu.org

 

'전자 관련 이야기 > Embedded' 카테고리의 다른 글

Digilent Arty Z7 - PetaLinux #2  (0) 2023.10.03
Digilent Arty Z7 - PetaLinux #1  (0) 2023.09.17

+ Recent posts