I am Working on External Memory Controller register & doing programming in Keil. Here I Send data on CS0 which has address 0x80000000; which is placed in off chip memory. I got option to set off chip memory in Target option, but it gives error for write memory access .
this is code i written in program... #define LCD_COMMAND0 (*(volatile unsigned short *) 0x80000000)
void Emc_Init(void) { PCONP |= (1<<11); PINSEL6 = 0x00005555; PINSEL9 = 0x10040000; EMC_CTRL = 0x00000001; EMC_CONFIG = 0x00;
EMC_STA_CFG0 = (0x00 << 0 | 0 << 3 | 0 << 6 | 1 << 8 | 1 << 19 | 0 << 20); EMC_STA_WAITWEN0 = 0x00; EMC_STA_WAITWR0 = 0x00; EMC_STA_EXT_WAIT = 0x00; return; }
LCD_COMMAND0 = data;
Error is give at the time of debugging... *** error 65: access violation at 0x80000000 : no 'write'
Setting in Target: Read only Memory: for on chip memory.. IROM1: Start=0x0 & Size: 0x80000 & in IRAM: Start=0x40000000 Size:0x7000 for off chip memory.. RAM: Start=0x80000000 Size:0x1000