These are chat archives for SmingHub/Sming

16th
Dec 2015
Dmitry Kireev
@kireevco
Dec 16 2015 01:05
@piperpilot is this sdk related? are you trying new sdk?
Dmitry Kireev
@kireevco
Dec 16 2015 01:14
ok, I've read messages.
It might be an issue with binutils
Curtis Pope
@piperpilot
Dec 16 2015 01:14
yeah, sorry that was with the new SDK
on OSX with an rboot project
Dmitry Kireev
@kireevco
Dec 16 2015 01:21
last version binutils was built with gdb from https://github.com/jcmvbkbc/binutils-gdb-xtensa
Dmitry Kireev
@kireevco
Dec 16 2015 01:30
I will roll back to the non-gdb version, and we'll try agan
*again
Dmitry Kireev
@kireevco
Dec 16 2015 01:59
ok, building the previous optionl
Curtis Pope
@piperpilot
Dec 16 2015 03:09
man I'm lost in this exception problem. I'm getting the following:
Fatal exception 0(IllegalInstructionCause): epc1=0x40232504, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
and here is what is in the map:
This message was deleted
fill 0x0000000040232502 0x0
fill 0x0000000040232502 0x0
fill 0x0000000040232502 0x0
fill 0x0000000040232502 0x0
fill 0x0000000040232502 0x0
fill 0x0000000040232502 0x0
fill 0x0000000040232502 0x2
.text._ZN12MethodCallerIM21SerialReadingDelegateFvR6StreamctEE6invokeES2_ct
0x0000000040232504 0x2a out/build/app_app.a(application.o)
0x0000000040232504 _ZN12MethodCallerIM21SerialReadingDelegateFvR6StreamctEE6invokeES2_ct
Does that mean anything to anyone?
Dmitry Kireev
@kireevco
Dec 16 2015 03:15
is this with a my new sdk?
it's probably broken, so let's wait for another buidl
but seems that ftp.gnu.org is down :-D
Dmitry Kireev
@kireevco
Dec 16 2015 03:22
(@piperpilot )
try these now
(no gdb, different binutils)
pls give it a try
windows is coming
alon24
@alon24
Dec 16 2015 06:59
@kireevco i compiled and run with latest 1.5.0 and it runs and compile
Dmitry Kireev
@kireevco
Dec 16 2015 07:04
yepee
he had weird issues
a word for @piperpilot
alonewolfx2
@alonewolfx2
Dec 16 2015 07:15
i am trying
alon24
@alon24
Dec 16 2015 07:19
my project works with esp-alt 1.4 and 1.5 well on a mac
hreintke
@hreintke
Dec 16 2015 07:29
This message was deleted
@piperpilot :
Do you have serial callback and/or commandprocessing active on Serial ?
hreintke
@hreintke
Dec 16 2015 10:21
@all : Can someone who used HTTP POST answer this question ?
http://www.esp8266.com/viewtopic.php?f=35&t=7167&sid=569460fe8413a95f7395581dd42a0d16
Curtis Pope
@piperpilot
Dec 16 2015 13:57
@hreintke Yes, I do have a serial callback on the Serial. I have been tearing things apart looking for the problem. I was able to get my callback code working fine in basic_serial and http_configNetwork. Now I removed my rboot OTA stuff and things seem more stable...gonna slowly put that back in and see where it breaks.
probably something stupid I'm doing with variables or memory access or something
@kireevco I will try the binary build...yesterday I was trying from the build script
Curtis Pope
@piperpilot
Dec 16 2015 15:47
cool, so they are in the wild ;-)
hreintke
@hreintke
Dec 16 2015 15:50
This message was deleted
@piperpilot :
If you want and can test without the serial callback , you just can remove line 246 from HardwareSerial.cpp.
That "just removes the calling of the delegate" but leaves all other in place.
Curtis Pope
@piperpilot
Dec 16 2015 15:53
cool, thanks...I actually got to a stable serial receive and now putting code back slowly to see where the problem was
hreintke
@hreintke
Dec 16 2015 15:58
Just remember, there was an issue with uart buffering not OK when fast input.
Should be solved by PR #468 but that is not yet merged into develop.
Curtis Pope
@piperpilot
Dec 16 2015 17:02
thanks, I didn't see that issue...maybe thats what I am running into as I am sending a fairly large chunk of data
I'll apply that change locally and see if it makes a difference
Dmitry Kireev
@kireevco
Dec 16 2015 17:44
@raburton I was able to build xtensa-lx106-gdb.exe separately for windows, so it might just work when I copy it in... another build is on it's way...
( @alonewolfx2 )
Dmitry Kireev
@kireevco
Dec 16 2015 20:08
This message was deleted
This message was deleted
This message was deleted
This message was deleted
This message was deleted
Curtis Pope
@piperpilot
Dec 16 2015 20:26
well I have narrowed the problem down...problem is...not sure why or how to get around it...on initial powerup, I am using this:
WifiStation.waitConnection(connectSuccessCallback,30, connectFailureCallback);
when it jumps into my connectSuccessCallback, if I call any kind of function, it randomly will fail with an IlegalInstructionCause. Examples of functions that will trigger this:
Serial.print(WifiStation.getIP().toString());
WifiAccessPoint.enable(false);
whats really wierd is that the failure doesn't happen inside that callback...it happens in the Serial OnData delegate...but if I remove this callback or take out the function calls from it...everything works fine
Curtis Pope
@piperpilot
Dec 16 2015 21:08
Interestingly enough, when I roll back to SDK 1.3...which means rolling develop back to commit 77d3dfdfb68ea35a542ed3628cba75eb175afda1 everything seems to be happy. So either there's an SDK issue that is screwing with the delegates or one of the recent changes to memory management or something else is screwing with things. I'll try to get a simple example together to reproduce the issue and open a bug so that someone that knows more about the guts can take a look at this...been banging my head against the wall for 2 days on this...