1

Topic: Exception error

I have two RemoteXY apps that run on ESP8266-01 (standalone, no Arduino).   The first is a simple one that I wrote to become familiar with the tool which downloads and runs correctly.   After downloading I reset the USB adapter and the blue LED on the ESP8266-01 will flash almost continuously and "RemoteXY" appears on my phone as the wi-fi network and I can join and use the app.

I've just completed a more elaborate app which does not seem to start the wi-fi network correctly, even though I've cut-and-pasted the code from the editor just as before.    It's obviously a larger app but is compiles and downloads without error, however when the ESP8266-01 comes up,  the blue LED only blinks about once per second and the serial monitor shows a stream of error messages - the following, repeated:

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (9):
epc1=0x40201608 epc2=0x00000000 epc3=0x00000000 excvaddr=0xc9f0c11a depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffde0 end: 3fffffc0 offset: 0190
3fffff70:  00000000 00000000 3ffef814 40201675 
3fffff80:  00000000 00000000 00000001 3ffee710 
3fffff90:  3fffdad0 00000000 00000000 402019e0 
3fffffa0:  3fffdad0 00000000 3ffee6d0 4020598c 
3fffffb0:  feefeffe feefeffe 3ffe853c 40100e11 
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

I hope this allows you to figure out what's going on - I'll wait to hear before making other changes on my own, thanks.

Bob

2

Re: Exception error

An update - I found that I had a Serial.begin(9600) line in my code - commenting it out causes the blue LED on the 8266-01 to blink nearly constantly but the RemoteXY device still does not show up in wi-fi scan.     And naturally without the serial port I no longer can see the exception error message.

Bob

3

Re: Exception error

The blinking light is becasue the device is constantly rebooting, hence the error.  Something in your code is possibly incorrect or not sutible for an ESP-01

"And voila, which is French for.......'and then I found out.'" - Ready Player One

4

Re: Exception error

Download the entire ketch from the RemoteXY editor. Don't add your own code. Test only how the graphical interface works. If everything is in order, then the error should be looked for in your additional code. If clean code from the RemoteXY editor doesn't work, post it here.

5

Re: Exception error

Thanks -  I found the problem.   I'd inadvertently created a duplicate GUI object which wasn't noticeable as it overlaid the real one.   But it was creating a duplicate variable and I had deleted it in the sketch to get it to compile, not remembering that it was still present in the code that is downloaded to the phone.   After finding and fixing the duplicate in the editor, the sketch will compile and wi-fi is working as it should, so I'm on with my debugging.

I should have thought of running only the auto-generated sketch as the first troubleshooting step and will will remember that from now on!

Bob

6

Re: Exception error

w9ran wrote:

Thanks -  I found the problem.   I'd inadvertently created a duplicate GUI object which wasn't noticeable as it overlaid the real one.

Bob, consider putting your GUI code in its own "tab", and #include it in your sketch, e.g. #include RemoteXY.hpp.

Then when you want to change anything in the GUI, you can copy from the source provided (from the first "////////..." line, to the last "...//////" line). Then go to the IDE, select the RemoteXY tab, do Ctrl-A (select All), then Ctrl-V (Paste). Job done, and so much easier than having it cluttering the top of your sketch.

I have read somewhere that a button may be provided to make the copying easier, so there'll be no need to select from "////..." to "...//////", making it even easier still.

2B, or not 2B, that is the pencil ...