Digilent / Zybo-Z7-20-pcam-5c

52 stars 29 forks source link

PCam 5 Vivado 2018.2 #8

Closed estibalitz closed 5 years ago

estibalitz commented 5 years ago

I have tried your code but I do get two error, just afterdoing: .import--> File System-->sdk_appsrc/pcam_vdma_hdmi that are:

error

and I dont understand what can be wrong

elodg commented 5 years ago

Make sure pcam_vdma_hdmi is a C++ project when creating.

estibalitz commented 5 years ago

The programs closes as soon as pcam_vdma_hdmi is defined as a C++ project. It only enables Target Software Language to C. After defining the blanck empty application in C, there are no issues or errors. imagen

But the main error comes when including the import files imagen

where some fo them are not defined as:

  1. the main
  2. make. ***[pcam_vdma_hdmi.elf]

imagen

And after trying to create again the Empty application for Fsbl_source the same errors do appear:

imagen

elodg commented 5 years ago

Ignore the importing/creating FSBL for now, you might not even need it. The error message you must focus on is: "undefined reference to 'main'". This is linker error saying that when linking all the libraries/modules together your C/C++ application does not have a main function present. If you created pcam_vdma_hdmi as a C++ application and you imported main.cc correctly, it will have a main function defined.

estibalitz commented 5 years ago

you were right, I did add them and there was no longer error regarding to the "undefined reference to 'main'". But an warning promps up because of ps7_cortexa_9. imagen I have looked to some forums, and it ios supossed to be something about the drivers, but adding -g-O0 doesn´t work for me as it was supossed ( i get 98 errors) imagen

elodg commented 5 years ago

Re-create the launch configurations, or better yet the whole workspace.