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?
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
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