how can I read a value from a given memory address (e.g. 0x02000000) using C?
I tested this
With memory = 0x20000000 it worked, with memory = 0x02000000 I got:char *ptr = (char *) memory;
printf("Data=%c\n", (char) *ptr);
At stackoverflow I found: "You get a seg fault if you're trying to read something for which you aren't mapped a page."Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:...
Ok, but how can I correct map to the correct page?
I need it for a dump of memory to find some challenges.