Clear Filters
Clear Filters

How to set register address with devmem on ZCU216?

43 views (last 30 days)
Aera
Aera on 4 Oct 2024 at 3:37
Answered: Pooja Kumari on 7 Oct 2024 at 9:10
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.

Answers (1)

Pooja Kumari
Pooja Kumari on 7 Oct 2024 at 9:10
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!

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!