Hi,
I made a simple register on the PL that I can read and write to using a simple bare metal application. When I try to do the same on a compiled linux app I get a segmentation fault. Do I need to modify something on the linux side to get this to work? The device tree? Thanks!
Here is what I am doing...
int *reg0 = REGISTERS_BASE_ADDRESS;
// Read Reg0
printf("Reg0 is r
", *reg0);
// Write Reg0
*reg0 = 1;
// Read Reg0
printf("Reg0 is now r
", *reg0);