This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:no-os:dac_dma_example [18 Mar 2021 08:51] – created Darius B | resources:no-os:dac_dma_example [29 Mar 2024 19:44] (current) – Specified the number of channels to be plotted iulia Moldovan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== DAC_DMA_EXAMPLE | + | ===== DMA_EXAMPLE |
- | DAC_DMA_EXAMPLE | + | DMA_EXAMPLE |
+ | |||
+ | To build the DMA_EXAMPLE demo, edit the Makefile and add **-DDMA_EXAMPLE** to CFLAGS and rebuild. Alternatively, | ||
+ | |||
+ | To run the DMA_EXAMPLE, | ||
+ | * making sure it was built with the **DMA_EXAMPLE** flag, as already mentioned | ||
+ | * monitoring the serial terminal for messages printed by the application | ||
+ | |||
+ | The application will eventually print something like this: | ||
+ | < | ||
+ | DMA_EXAMPLE: | ||
+ | </ | ||
+ | |||
+ | This means that the memory address | ||
+ | |||
+ | At this point you may use a Tcl script to retrieve data from memory and store it into .csv files for processing. In the terminal where you built the project, run the following command while being in the no-OS/projects/// | ||
+ | < | ||
+ | for Zynq-7000: | ||
+ | xsct ../ | ||
+ | |||
+ | for ZynqMP: | ||
+ | xsct ../ | ||
+ | |||
+ | for Versal: | ||
+ | xsct ../ | ||
+ | </ | ||
+ | |||
+ | After running the xsct command, some .csv files will be created in your directory. Now you need to run the Python script for plotting, specifying | ||
+ | |||
+ | < | ||
+ | python3 ../ | ||
+ | </ | ||
+ | |||
+ | and a plot window will open showing the Rx channels. | ||
- | To build the DAC_DMA_EXAMPLE demo, edit the Makefile and add **-DDAC_DMA_EXAMPLE** to CFLAGS and rebuild. Alternatively, |