Hello all,
I need to access the Zedboard's DDR0 memory using Linux application. However, I get fault segmentation error which means that I do not have access to my memory. Does anybody has faced the same problem and knows a possible solution?
Hello all,
I need to access the Zedboard's DDR0 memory using Linux application. However, I get fault segmentation error which means that I do not have access to my memory. Does anybody has faced the same problem and knows a possible solution?
Is your Linux build stable? Have you looked at the Linux training that we have posted under Training? It's a bit old now, but the part about adding in your own application might be helpful.
Bryan
Yes, my Linux build is undoubtedly stable. I can say that as I can access some parts of my RAM using pointers but when I accessing my DDR0 the same way i get the fault segmentation error. On the other hand, I have to mention that when downloading the program with the jtag cable and not remotely I have full access to my memory. Thanks for your time.
Nicholas
Hi Zaglikosh,
Can you please show a snippet of code where you are trying to access memory?
If you malloc() a piece of memory, you should be able to access the memory without problems if it is successfully allocated for you. If you are just picking a pointer into memory at random and trying to access that memory space by de-referencing the pointer and you get a segmentation fault, then you are likely trying to access a piece of virtual memory that has not been allocated for you.
Regards,
-Kevin
Hello,
I have an IP core which needs the physical address to access the data from ram and perform operation on it.
using mmap i can successfully write on the registers of ipcore.
but i need to write the physical address on the registers of ipcore.
I used malloc to create buffer A in user space now all i need to do is to find the physical address of A.
Is there any one who can guide me?