When I try to build the +TCP example project for the Zynq (MicroZed BSP), I am getting this error:
“The Hardware Project referenced by this BSP (RTOSDemo_bsp) was not found in this workspace. As a result, this BSP will not build properly. To fix this error, please import the associated hardware project or recreate a new BSP targeting an existing hardware platform.”
I am using SDK 2016.4 and I did not include the ZC702_hw_platform project. When I do include this HW project, there are no error messages. I have followed these instructions: http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCPIP_FAT_Examples_Xilinx_Zynq.html besides that I have included the MicroZed_hw_platform and excluded the ZC702_hw_platform project.
Should I change a setting in the RTOSDemo_bsp project and recreate the BSP?
I do see a generated elf binary, and it seems to run on the board. Can I ignore the error message above?
I think this relates to changes in the SDK versions. The demos don’t
use anything outside of the MAC (which is the same on both hardware
platforms) the SD card slot (which I’m assuming is the same on both
platforms, especially as you say it is working), and a few LEDs (which
no doubt are different on the two platforms). So if you see everything
working other than the LEDs then I would suggest you just go with what
is working for you - you can probably adjust the LED pin mapping
yourself with a little help from the MicroZed hardware manual.
Not sure if it helps, but I made a picture of a working Zynq project here
Please check and compare every little detail in the picture.
When you start using a Xilinx demo, make sure that you import all available projects, also the “standalone_bsp_0”, or so.
I think the MicroZed_hw_platform project is missing a .hdf file.
The ZC702_hw_platform project does have this system.hdf file (Zip file) containing all HW description files.
OK, I have found the solution.
It seems that the default BSP in the example called RTOSDemo_bsp is hardwired to ZC702_hw_platform. I was not able to change this in the SDK. I can hack into the .sdkproject file, but I don’t want to do that.
So, the solution is to create a new bsp project and link that to MicroZed_hw_platform. After that RTOSDemo project has to be linked to the newly created bsp project.