This is an old revision of the document!
Be sure you are using the latest release version and you have the corresponding branches for both hdl and no-Os(Release notes).
We strongly recommend having a clone of no-Os and hdl in the same folder:
~/github/hdl ~/github/no-Os.
The build flow is based on make.
In every project folder one can find a subfolder for each supported carrier. In each carrier folder, there is a Makefile which points to the projects hdl (system_top.hdf/project_name.sof) and other makefiles (*.mk) containing the software dependencies.
Make sure you have the FPGA connected to your PC and then run the command:
make run
The above command downloads the bitstream or the raw binary file on the FPGA and after that the elf file.
The software is started before the memory debugger disconnects
After the software has been run on the FPGA, run the command:
make capture
By default, the software captures (in case of ADC based projects) the data received from the device in the RAM.
rx_xfer.start_address = *_MEM_BASEADDR + OFFSET; rx_xfer.no_of_samples = value; dmac_start_transaction(ad_core_dma);
These values differ depending on the architecture and device.
The Makefiles have these parameters initialized with default values:
For projects that have more than one channel or require a different number of capture samples one can specify this value in the projects common Makefile (ex: fmcadc4)
For example, for fmcomms2(AD9361: 2RF channels):
fmcomms2 | ||
---|---|---|
channel1 | data I | capture_ch1.csv |
data Q | capture_ch2.csv | |
channel2 | data I | capture_ch3.csv |
data Q | capture_ch4.csv |
make clean
If you get
make: *** No rule to make target `../../../hdl/projects/daq2/vc707/daq2_vc707.sdk/system_top.hdf', needed by `hw/system_top.bit'. Stop.
Your hdl in not build or the folder structure is not the one recommended at the beginning of this page, you have to build/specify hdl location.
For Xilinx
make M_HDF_FILE=/path_to_hdf/system_top.hdf
For Intel
make M_SOPCINFO_FILE=/path_to_sopcinfo/system_bd.sopcinfo M_SOF_FILE=/path_to_sof/my_project_carrier.sof
make run (plus the above)