Delay after Re-Enabling interrupts
2004-09-16 by givc@yahoo.com
Hello, I'm working with IAP and as recommended by the LPC2119 manual I'm disabling all the interrupts I use (TIMER0 and CAN1 Rx) before any erase or write operation on the Flash. Everything's working fine, the only "problem" is that sometimes it takes some time(~20-30sec.) for the interrupts to wake up the first time I disable them. This is the process the 1st time I disable interrupts: 1.- Disable Interrupts 2.- Erase sectors (1..14) 3.- Enable Interrupts 4.- Send CAN Message .........delay here........ 5.- Receive CAN Message I know the delay is not while erasing sectors because I actually see that my CAN msg it's received... but I can't detect any CAN msg sent to me until that ~20-30sec. A few steps ahead I disable/enable the ints. to program the Flash, and this time it all works without any delay. Does anyone have any idea of what might be happening? Thanks in advance, Gonzalo