Forum Discussion
Manikanta123
New Contributor
4 years agoUnable to read data from h2f_master port from HPS linux
Hai Team,
I'm using Agilex board and trying to interface Axi4Lite IP to HPS via h2f_master port and wrote small application in linux to read from h2f_master port but we are unable to read data ...
tehjingy_Altera
Regular Contributor
4 years agoHI Manikanta123
In the linux program that you are using how are you reading the memory mapped address?
What address value that you are reading from?
Regards
Jingyang, Teh
Manikanta123
New Contributor
4 years agoHai Jingyang,
We have memory mapped the total address range using mmap function and we are reading from those addresses with the help of below function
unsigned int read_dma(unsigned int *virtual_addr, int offset)
{
return virtual_addr[offset>>2];
}
We are reading from base address of that IP + 0x10 ,when we are reading the value from that address ,it is always show showing zeros.
Regards,
Manikanta