Forum Discussion
tehjingy_Altera
Regular Contributor
3 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
- Manikanta1233 years ago
New Contributor
Hai 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