Iam working on LPC2378 with KEIL3. There is no OS and its a customized board.
An problem occured when i called a function 'Init_VIC()' ... i guess !!!
it is defined as
/* Initialize the interrupt controller */ /****************************************************************************** ** Function name: init_VIC ** ** Descriptions: Initialize VIC interrupt controller. ** parameters: None ** Returned value: None ** ******************************************************************************/ void init_VIC(void) { DWORD i = 0; DWORD *vect_addr, *vect_cntl; /* initialize VIC*/ VICIntEnClr = 0xffffffff; VICVectAddr = 0; VICIntSelect = 0; /* set all the vector and vector control register to 0 */ for ( i = 0; i < VIC_SIZE; i++ ) { vect_addr = (DWORD *)(VIC_BASE_ADDR + VECT_ADDR_INDEX + i*4); vect_cntl = (DWORD *)(VIC_BASE_ADDR + VECT_CNTL_INDEX + i*4); *vect_addr = 0x0; *vect_cntl = 0xF; } return; }
The controller got crashed and error message "could not stop JTAG device" is being showed everytime i try to flash or erase it! I commented the call and there was no problem flashing it on another board !!! I am totally puzzeled. please anybody tell me why ?
Thanks in advance
dipinraj.d@gmail.com
Maybe because vectors 2 and 3 are Embedded ICE, DbgCommRx and DbgCommTx?