- Overview of libIIO: https://wiki.analog.com/resources/tools-software/linux-software/libiio
- libIIO documentation: https://analogdevicesinc.github.io/libiio/master/index.html
- libIIO internal architecture: https://wiki.analog.com/resources/tools-software/linux-software/libiio_internals
How to set register address with devmem on ZCU216?
11 views (last 30 days)
Show older comments
Currently we are using ZCU216 with matlab/Simulink to develop logics. We created a register and its name is "Delay1Reg" and address is 0x0488 (see red box in attached photo) . When we use matlab terminal and write "writePort(hFPGA, "Delay1Reg",255);". This works very well.
Now we want to use an ssh connection and write the register from the embedded linux system e.g. "devmem 0x0488". But this looks like it's reading something wrong. Do you have any ideas what is this register’saddress is using the devmem command?
I also have attached vivado’smemory map.
0 Comments
Answers (1)
Pooja Kumari
on 7 Oct 2024
Hello Aera,
I understand that you wanted to use an ssh connection and write the register from the embedded linux systems e.g. "devmem 0x0488".
You can refer to the below documentation for using 'devmem' that can be used on the target device to read/write registers:
You could interface to the host by establishing an SSH connection, and then issuing the 'devmem' commands over SSH.
However, there is extensive documentation on libIIO that is provided by ADI that you may find helpful. The libIIO APIs are used under the hood by the writePort/readPort commands. However, note that this requires an understanding of libIIO to leverage these APIs. Here are some documentation links:
Hope this helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!