Hello,
I want to write and read from the DATARAM of the PRU1, So I used this part of program:
/*******************Transfert/Reception of values in DATARAM********************************/
unsigned char fileDataArray[4]={1,2,3,4};
prussdrv_pru_write_memory(PRUSS0_PRU1_DATARAM, 0, (unsigned int *) fileDataArray, 16);
prussdrv_map_prumem (PRUSS0_PRU1_DATARAM,&pruDataMem);
for(ret=0; ret<4; ret++)
{
printf("value %d: %p adress %d: %p\n", ret, (void*)pruDataMem, ret, pruDataMem);
pruDataMem ++;
}
/*************************************************************************************************/
After executing this program, I saw this result:
value 0: 0xb6d78000 adress 0: 0xb6d78000
value 1: 0xb6d78001 adress 1: 0xb6d78001
value 2: 0xb6d78002 adress 2: 0xb6d78002
value 3: 0xb6d78003 adress 3: 0xb6d78003
I think that this program must print results(1,2,3,4) and their adress.
Regards,
Ayoub