Part Number: RM48L952
Hello,
I am trying to write 8 bit data to external asynchronous device using EMIF. I have enabled the EMIF driver, enabled the pinmux for EMIF, set my vclk3 to 8 Mhz and on EMIF tab enabled the EMIF ASYNC1 and rest setting are same as I want to use it in Normal mode.
What I have understood is I have to write data to the chip select memory address. I am using CS[4] address 0x68000000. My code is as below:
#define EMIF_ADDRESS_CS2 *(int *)0x69000000;
int main(void)
{
/* USER CODE BEGIN (3) */
systemREG1->GPREG1 = ((uint32)((uint32)1U << 31U) | systemREG1->GPREG1) ;
emif_ASYNC1Init();
while(1){
EMIF_ADDRESS_CS2 = 0xFF;}
/* USER CODE END */
return 0;
}
Suggest me where am going wrong.
Thanks