I was wondering how to stop the exceptions coming out on serial ?
I am using serial for communications but if it crashes it will display all the program stack out on serial, any ideas how to redirect or something?
Thanks
I was wondering how to stop the exceptions coming out on serial ?
I am using serial for communications but if it crashes it will display all the program stack out on serial, any ideas how to redirect or something?
Thanks
I am wondering what you are talking about?
What exceptions "come out on serial"?
Do you mean that your program won't compile? If so, post the error messages you are getting.
If you mean something else please provide a better explanation.
...R
Hi
Sorry that was rubbish of me !, should explain more, when you start a program running and do
Serial.begin(115200);
Any crash or exceptions at runtime will output the stack to serial.... I need to not happen, any ideas ?
Thanks
And why exactly is it "crashing"?
Write code that does not crash
What you see is not a stackdump.
Which Arduino are you using? Are you using the Arduino IDE (version)? Post your "stack dump". Post your code. Where is the serial coming from? Serial monitor, PC program, external device (GPS for instance)?
Read the how to use the forum stickies. They tell how to post code and give hints on how to ask a question (hint, hint).
PhilCol:
Any crash or exceptions at runtime will output the stack to serial.... I need to not happen, any ideas ?
I have never seen anything like that. There is nothing so sophisticated in an Arduino program - it has no operating system to detect aberrant behaviour.
Put another way "It's all the fault of your own code"
...R
Yes I know its a fault of my own code, its actually an esp8266, but using the arduino SDK....
Unfortunately until I find the fault I dont want to output anything on Serial at all regarding any problems, just what I want to transmit...
I supposed I can do serial begin and then end everytime I want to send out anything on serial, but just looking keep the speed of the program up, its parsing nmea ...
Thanks
Why does it matter if it sends gibberish when it crashes during development?
What is receiving the data? (and barfs when it receives rubbish)?
...R
Because the data is on Serial, and serial is used to transmit and receive the data i wish to send, having a crash on serial sends it all over the RF .
It mainly works just crashes once every now and then, so I can use to test, just want the crash not to go serial....
Its transmitting and receiving on 2 TCP connections, 1 UDP and picking up and sending data on 2 different radio modules, its a bit complicated therefore taking a long time to find the bug !
@QP POST A COPY OF THE OUTPUT!
@Robin2 et al - Sounds like the serial monitor is crashing and giving a java dump!
Mark
Sorry, is irrelevant what the output is, just want any output not to be sent to Serial , whatever it is ?
It crashes very rarely, so very difficult to catch the exception ..
Something like
Panic :824850233
ctx: cont
sp: 3fff1b00 end: 4754564e offset: 01a0
stack>>>
3fff1ca0: 3ffe8e04 3ffefd44 3ffefd44 40213534
3fff1cb0: 3ffefe98 3ffefd44 3fff0cc4 402081f4
3fff1cc0: ffffffff 3fffc6fc 00000001 3fff0d81
3fff1cd0: 3ffe9090 00000000 000003e8 000093b1
3fff1ce0: 3fff0834 3fff6570 00000000 00000000
3fff1cf0: 00000000 3fff6d88 000003df 000003d7
3fff1d00: 3fff65d0 0000000f 00000000 00000009
3fff1d10: 00000019 00000001 00000000 3fff5c57
3fff1d20: 3fff5c50 3fff0c98 3fff1d7c 3fff0d88
3fff1d30: 3fffdc20 3fff0c98 3fff0cc4 4020101c
3fff1d40: 4010684c 3fff0cc4 3ffeff5c 40209261
3fff1d50: 3fff5c50 3fff5c50 0000000f 00000000
3fff1d60: 00000002 00000002 3fff0cc4 40207a2d
3fff1d70: 00000000 00000000 00000016 40101c79
3fff1d80: 4020e72d 00000006 00b6fa31 3fff0d88
Thanks
What program do you have running on the Arduino? POST THE CODE!
Well you have not upset java on your PC. But Arduinos don't do stacktraces, code dumps etc
Mark
The data in Reply #11 did not come from your Arduino (unless you specifically wrote code to produce that).
Your descriptions so far have been much too vague to provide useful debugging of a complex system.
Am I correct to assume an arrangment like this
PC ----USB-cable---Arduino .......Wireless...... AnotherDevice (what).
Where, along this chain, is the output in Reply #11 appearing?
Assuming it is appearing on the PC, what program is running on the PC?
What operating system is on the PC?
What is at the other end of the wireless link?
...R
sterretje:
What you see is not a stackdump.
I assume I was wrong
But it does not come from the Arduino code.
Hi
Its the output from an esp8266 using the Arduino SDK it can use, sorry I havent used the Arduino so I wrongly assumed this would happen on both, nevermind, will keep looking
Thanks