EEPROM halts interupts
EEPROM halts interupts
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? the EEPROM store function in Flowcode V3 seems to be the culprit!
Re: EEPROM halts interupts
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!
- Attachments
-
- DMX EXAMPLE.c
- (17.27 KiB) Downloaded 210 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: EEPROM halts interupts
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel