Still Having problems with Uarts
Posted: Sun Jul 21, 2013 8:49 pm
Hi Guys,
Looking back over posts for problems with Uarts seems like I posted half of them. I did finally get things stable and workable, but I have changed the schematic a little, just changed pins definitions and increased to larger processor in the same family. Now I have serial issues again. The processor reboots on about 50% of incoming serial data. I can disable the decoding code and it still crashes so I am sure it is the ReceiveRS232Char() itself. The serial interrupts still throws up warnings of potential stack corruption due to the delay_us thing thing but I have confirmed that this is not the culprit because I still crashes when put ReceiveRS232Char() in the main loop diable the interrupt routine. Out of curiosity (or desperation) tried using ReceiveRS232String(), same thing, and even tried switching to software Uart to see if it was something to do with the PIC - nope, still crashes.
Really hoping you can see the problem or think of a workaround. Thanks chaps.
Jon
Looking back over posts for problems with Uarts seems like I posted half of them. I did finally get things stable and workable, but I have changed the schematic a little, just changed pins definitions and increased to larger processor in the same family. Now I have serial issues again. The processor reboots on about 50% of incoming serial data. I can disable the decoding code and it still crashes so I am sure it is the ReceiveRS232Char() itself. The serial interrupts still throws up warnings of potential stack corruption due to the delay_us thing thing but I have confirmed that this is not the culprit because I still crashes when put ReceiveRS232Char() in the main loop diable the interrupt routine. Out of curiosity (or desperation) tried using ReceiveRS232String(), same thing, and even tried switching to software Uart to see if it was something to do with the PIC - nope, still crashes.
Really hoping you can see the problem or think of a workaround. Thanks chaps.
Jon