Utilizing SoC Blockset DMA steams with external c functions on Linux

Hello,
[The context here is a Linux system not a standalone one]
I am looking at DMA streams, primarily PL to PS. I am using the SoC Blockset to achieve this but I also want to utilise the large c library I have built over the years without having to transpose it into a matlab functions.
I have done a few tests and can see that I can address the ADI DMAC that SoC bockset creates. I can also see that it is initialised by having an empty processor block in the Simulink model. What I want to do is use the ability that SoC blockset initialises these controllers and then I want to have a intermediate layer so I can pull the data from the DMA stream and manipulate it with my present c library. I believe that it is my limited knowledge of device drivers that is slowing me here but I was wondering if anybody had a new take or idea on how to achieve what I am doing. I have tried picking apart how matlab compiles functions in the Simulink block SoC processor so i can put my own hooks in and ultimatly insert my own code but sadly it is not a trivial process.
The aim here is that I can cross compile my library and actively push code from my laptop to any of the supported Xilinx Boards for development. Then when development is done I can leave the board to run the functions independently as a stand alone system.
Much appreciated,
Steve

Answers (0)

Products

Release

R2022b

Asked:

on 27 Jul 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!