I got simple program, as follows:
while(1){
tgetchar();
tXil_DCacheFlush();
txil_printf(" reading ...
");
tfor (i = 0; i<258; i++) {
t offset = 0x04*i;
t param = Xil_In32(M_AXI_BUFFER + offset);
t xil_printf(" READ addr %x ... val %d
", M_AXI_BUFFER + offset, param);
t}
txil_printf(" reading done ...
");
};
... it runs 2 or 3 times in a row, for single press of "ENTER". Why is that ? Isnt the getchar() blocking ? Xil_DCacheFlush(); has no influence on the execution of the program (still the same behaviour).
Running Vivado 2014.4 with ZedBoard