Page 1 of 1

EEPROM halts interupts

Posted: Sun Jan 24, 2010 8:43 pm
by Lazy Haze
Hi, i have a working DMX decode program under Flowcode V3 and as i store the DMX address in EEPROM this then halts any further interupts (i think) pressing the reset button causes the prog to continue to function correctly. i have tried to re initialise the interupts to no avail. What other registers get affected? is there an easy fix? :roll: the EEPROM store function in Flowcode V3 seems to be the culprit!

Re: EEPROM halts interupts

Posted: Mon Jan 25, 2010 11:46 am
by Steve
Please post a simple example program and we'll look into this.

Re: EEPROM halts interupts

Posted: Wed Jan 27, 2010 9:07 pm
by Lazy Haze
I have stripped out most of the code and this i think demonstartes the prob a low on PA2 for three seconds causes a store then it all stalls!

Re: EEPROM halts interupts

Posted: Thu Jan 28, 2010 9:57 am
by Benj
Hello

The interrupts are being re-enabled in the EEPROM write function. What may be happening is that the UART is receiving characters while you are writing to the EEPROM. This could cause an error that then causes the UART to lock up the system. After performing your EEPROM writes maybe you could do a dummy RS232 read to try and kick off the receive interrupt again.

Let me know how you get on.