UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor gurusamy
Visitor
2,660 Views
Registered: ‎05-21-2017

Compiler and linker errors while building a demo project!

Hi,
I am using ZU3EG board from Xilinx and a base-board from Trenz. I tried to run FreeRTOS on Cortex-R5 and according to their documents, I have created a new project using Xilinx SDK (version 17.1). Generation of demo sources went fine without any errors but, when I compile the generated sources/project, I get the following errors: (I have also tried with Vivado SDK 16.4 but, I get the same errors)
From pre-processor/compiler:
...
"Compiling FreeRTOS"
portZynqUltrascale.c:78:20: fatal error: xttcps.h: No such file or directory
compilation terminated.
make[1]: *** [libs] Fehler 1
make: *** [psu_cortexr5_0/libsrc/freertos901_xilinx_v1_0/src/make.libs] Fehler 2
...
From linker:
...
make all
'Building target: Test4.elf'
'Invoking: ARM R5 gcc linker'
armr5-none-eabi-gcc -Wl,-T -Wl,../src/lscript.ld -L../../Test4_bsp/psu_cortexr5_0/lib -o "Test4.elf"  ./src/freertos_hello_world.o   -Wl,--start-group,-lxil,-lfreertos,-lgcc,-lc,--end-group
d:/programme/sdk/2017.1/gnu/armr5/nt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lfreertos
collect2.exe: error: ld returned 1 exit status
make: *** [Test4.elf] Fehler 1
...
(I am sorry if this issue has been already discussed here; if so, please tell me the right direction for me!).
Any idea/help to over-come these errors will be appreciated.
Many thanks!
 
0 Kudos
5 Replies
Observer jesuslazaro
Observer
1,976 Views
Registered: ‎02-25-2013

Re: Compiler and linker errors while building a demo project!

Hi,

 

xttcps.h is included when selecting any TTC peripheral inside Low Speed -> Processing Unit -> TTC

 

Regards,

 

Jesús

0 Kudos
Visitor russellsnow
Visitor
207 Views
Registered: ‎09-17-2018

Re: Compiler and linker errors while building a demo project!

"xttcps.h is included when selecting any TTC peripheral inside Low Speed -> Processing Unit -> TTC"

 

How do I use this? Is this in Vivado? SDK? Is this what causes the error or what fixes it?

0 Kudos
Observer jesuslazaro
Observer
194 Views
Registered: ‎02-25-2013

Re: Compiler and linker errors while building a demo project!

In Vivado you must select the TTC so that in SDK xttcps.h is available.

0 Kudos
Visitor russellsnow
Visitor
185 Views
Registered: ‎09-17-2018

Re: Compiler and linker errors while building a demo project!

What if you are not using TTC in your design?
0 Kudos
Observer jesuslazaro
Observer
159 Views
Registered: ‎02-25-2013

Re: Compiler and linker errors while building a demo project!

From what I understand, freertos uses it, so you should use it in your design.

0 Kudos