I'm running a driver code
driver.cc on the FPGA board (PYNQ-Z1) but it gives an error in the middle of the code where the code calls to
cma_alloc(size, cached) function, which returns a
NULL pointer after a few runs. I believe this is because the board doesn't have enough memory because the board has only 512 MB of DDR3.
To be more specific about the environment:
driver.ccis running on the processing system (PS) of the board, which is an ARM Cortex-A9 processor.
- The OS Linux is booted from a microSD card (8 GB) loaded with image from this GitHub repository.
What are some possible ways to solve this problem, or to increase the memory?
Note: I have read a similar question before but the answers weren't quite clear to me. Also, to be more specific and to answer duskwuff's comment in the previous question, I have includeed information about the PS/PL and the OS setup environment.