access to the register

I'm using the soft-core Cortex-M0,keil uvision 5,vivado 14.4 i interfaced an accelerator with my arm architecture,

when i do this ,everything was alright in the vivado simulator

 volatile signed int *rega = (volatile signed int *) 0x59000000;

*rega=45;


but when i try this

volatile signed int *rega = (volatile signed int *) 0x59000000;

int A[]={45,45};
*rega=A[0];


the simulation doesn't work,ther's no access to the register:0x59000000

Parents Reply Children
More questions in this forum