These are chat archives for esp8266/Arduino

8th
Mar 2016
Stavros Korokithakis
@skorokithakis
Mar 08 2016 00:00
i put an RF transmitter next to a PIR sensor and whenever the transmitter transmits, the PIR sensor detects motion. would anyone know why that might happen?
ZaPpInG
@lrmoreno007
Mar 08 2016 00:18
@skorokithakis welcome to the RF jungle
:)
Stavros Korokithakis
@skorokithakis
Mar 08 2016 00:19
but why would the PIR sensor do anything with RF?
and how can i stop this from happening?
Victor Tseng
@Palatis
Mar 08 2016 02:43
guard the pir with tin foil?
Lars Englund
@larsenglund
Mar 08 2016 08:06
What is the usecase of yield()? When must I call it?
tzapu
@tzapu
Mar 08 2016 09:23
as far as i know, whenever you have any loop/activity that would take too much time, without delays (that also call yield), otherwise the wifi stack looses it s s**t and it all goes horribly wrong
there was a specific ms duration somewhere in the docs that was the max a task could take (a sync one of course)
but i can t remember where
tzapu
@tzapu
Mar 08 2016 09:29
for @larsenglund was the above :P
Lars Englund
@larsenglund
Mar 08 2016 09:30
@tzapu thanks!
Victor Tseng
@Palatis
Mar 08 2016 09:33
dunno, i just delay() or yield() as long as i dont want wdt reboot my mcu.
Me No Dev
@me-no-dev
Mar 08 2016 09:45
it lets you switch the current context (setup and loop), so the network stack can run
it's like having two threads
one for network and one for your loop code
that is how you let the other one run it's code while waiting for something to happen
it's also how all async code is turned into sync one
for example you request a network scan and yield untill the result is ready then return
Lars Englund
@larsenglund
Mar 08 2016 09:49
will delay(1000) allow yielding during the entire delay or just call yield once?
Me No Dev
@me-no-dev
Mar 08 2016 09:49
and it can only be used from loop code. If you call it from a callback, the ESP will panic
delay yields internally while waiting
Lars Englund
@larsenglund
Mar 08 2016 09:50
great
Me No Dev
@me-no-dev
Mar 08 2016 09:50
delay(0) == yield()
Lars Englund
@larsenglund
Mar 08 2016 09:51
setup() is considered "loop code" right?
Me No Dev
@me-no-dev
Mar 08 2016 09:52
yes
they run in the same context
pin interrupts, timer interrupts and such run outside of it
Lars Englund
@larsenglund
Mar 08 2016 09:53
right, thanks
Lars Englund
@larsenglund
Mar 08 2016 09:58
Hmm, why would _conn->append(reinterpret_cast<const char*>(head), 12); cause an InstructionFetchErrorCause exception?
Me No Dev
@me-no-dev
Mar 08 2016 10:00
you have any trace for it?
Lars Englund
@larsenglund
Mar 08 2016 10:00
  uint8_t head[12] = {
    0x00, 0x00, //ID = 0
    0x00, 0x00, //Flags = response + authoritative answer
    0x00, questionCount, //Question count
    0x00, 0x00, //Answer count
    0x00, 0x00, //Name server records
    0x00, 0x00 //Additional records
  };
Exception (2):
epc1=0x3ffe8d24 epc2=0x00000000 epc3=0x00000000 excvaddr=0x3ffe8d24 depc=0x00000000

ctx: cont 
sp: 3fff0ca0 end: 3fff1080 offset: 01a0
and then a stackdump
That same line has been working just fine for quite a while
use this to decode the stackdump
Lars Englund
@larsenglund
Mar 08 2016 10:07
Alright...
did that but not sure what to look for :)
Me No Dev
@me-no-dev
Mar 08 2016 10:08
paste it
Lars Englund
@larsenglund
Mar 08 2016 10:08
How do I copy it? Can't select the text..
Me No Dev
@me-no-dev
Mar 08 2016 10:08
damn...
Lars Englund
@larsenglund
Mar 08 2016 10:11
getting different output when it has dumped the stack a few times..
Me No Dev
@me-no-dev
Mar 08 2016 10:13
what is common?
i'll try to make the text selectable in a mean time
Lars Englund
@larsenglund
Mar 08 2016 10:14
You mean what they have in common?
Me No Dev
@me-no-dev
Mar 08 2016 10:16
you have some debug enabled?
Lars Englund
@larsenglund
Mar 08 2016 10:17
No, I don't thinks so
Me No Dev
@me-no-dev
Mar 08 2016 10:17
exception seem to happen when a new pbuf (lwip packet buffer) is allocated and sent
but there is that strange printf call
seems unrelated to your code also
Lars Englund
@larsenglund
Mar 08 2016 10:18
How do you see that?
Me No Dev
@me-no-dev
Mar 08 2016 10:19
stack goest from bottom to top and i keep in mind that both contexts are in it mixed
the top portion of your dump is the same and happens right after some network call
first it acked the HTTP request that the web server got
then i think it broadcasted the mdns services (you probably have OTA running)
Lars Englund
@larsenglund
Mar 08 2016 10:22
Yeah, I'm implementing support for sending queries in ESP8266mDNS
The code that causes the exception is in ESP8266mDNS.cpp
Me No Dev
@me-no-dev
Mar 08 2016 10:24
the first trace you posted was not related to mdns though
Lars Englund
@larsenglund
Mar 08 2016 10:24
But the network code has been working just fine, I was just cleaning up some support code that puts answers in lists and stuff and then this started happening..
Me No Dev
@me-no-dev
Mar 08 2016 10:24
maybe something in the compiler
no clue at this point as to why
Lars Englund
@larsenglund
Mar 08 2016 10:25
I'm using Visual Micro if that matters?
Lars Englund
@larsenglund
Mar 08 2016 11:00
Ok.. I found the source, and as expected it was my fault. It was enough to comment out os_strcpy(_query->_proto, proto); to get the code working and the _proto buffer is 3 bytes and the proto string is 3 bytes (plus '\0') but I guess that os_strcpy copies the fourth zero byte to _query too and that zero byte gets written to someplace where it breaks something..
Changing my _proto buffer to 4 bytes fixes the problem :)
I guess I should use os_strncpy to avoid these kindof problems..
Lars Englund
@larsenglund
Mar 08 2016 12:13

Exception time again :)
Got a LoadStoreAlignmentCause when creating new items of this struct:

struct MDNSAnswer {
  MDNSAnswer* next;
  IPAddress ip;
  uint16_t port;
  String hostname;
};

using

         // Add new answer to answer list
          if (_answers == 0) {
            _answers = new MDNSAnswer;
            answer = _answers;
          }
          else {
            answer = _answers;
            while (answer->next != 0) {
              answer = _answers->next;
            }
            answer->next = new MDNSAnswer;
            answer = answer->next;
          }
Me No Dev
@me-no-dev
Mar 08 2016 12:26
String hostname?
what is the size of that?
Lars Englund
@larsenglund
Mar 08 2016 12:27
Well, it crashes before I ever use it
So whatever size String tmp; would become?
Me No Dev
@me-no-dev
Mar 08 2016 12:29
it should be char buffer with some size or a pointer to one
and I'm not positive that new will align the result to 4 bytes
Lars Englund
@larsenglund
Mar 08 2016 12:32
I wan't to return Strings to the user later so I thought I'd save some RAM by having them directly in the struct. Also igrr:s code in ESP8266mDNS uses String in a struct so I thought it was ok..
Me No Dev
@me-no-dev
Mar 08 2016 12:33
can you point me to that code?
Lars Englund
@larsenglund
Mar 08 2016 12:33

@igrr uses

struct MDNSTxt{
  MDNSTxt * _next;
  String _txt;
};

but also points out in a similar case that new for another class is not aligned, maybe we can align new for String to?
https://github.com/bblanchon/ArduinoJson/issues/104#issuecomment-136317633

or could it be IPAddress causing the misalignment?
(igrr then creates new MDNSTxt objects with new)
Me No Dev
@me-no-dev
Mar 08 2016 12:35
this is not iggr:s code and I really can't help but wonder how it's even working
Lars Englund
@larsenglund
Mar 08 2016 12:36
It isn't? I just assumed since the file started with ESP8266 port (c) 2015 Ivan Grokhotkov (ivan@esp8266.com)
tzapu
@tzapu
Mar 08 2016 12:36
got a basic electronics question here, if i connect a push switch to reset through a capacitor, so if i press the switch, it doesn t keep on resetting, but just does it once, is that wrong?
seems to do what i want… but who knows what i m doing :P
Me No Dev
@me-no-dev
Mar 08 2016 12:39
that is fine
basic hardware debounce :)
something like this
it s a polarised capcaitor
botom resistor, very low ohm value, 200ohm, or similar
Me No Dev
@me-no-dev
Mar 08 2016 12:41
hmmm.... have not tried what you show
tzapu
@tzapu
Mar 08 2016 12:41
top one 7k i think
seems to work fine..
left pin +, of cap, is connected to reset
when pressing switch, it sends ground to cap and reset and to an analog pin i read
seems fine in practice
but again, i ve got no clue what i m doing
:))
i press the switch, it resets, i keep it pressed and read low value on analog… and it doesn t loop reset
Me No Dev
@me-no-dev
Mar 08 2016 12:45
IMG_1702.JPG
tzapu
@tzapu
Mar 08 2016 12:45
ok, lemme try :D
i hope i don t loose my brilliant schematic :))
Me No Dev
@me-no-dev
Mar 08 2016 12:45
:D
tzapu
@tzapu
Mar 08 2016 12:48
hmm
what it seems to do
is that it doesn t trigger the reset until i let go
i need it to trigger reset immediatelly and keep the analog low enough time for me to read it
Me No Dev
@me-no-dev
Mar 08 2016 12:49
ok then inline of the reset put another 100n cap
that will mimic the AVR arduino reset circuit
and will actually pulse only once (on the falling edge)
since the cap does not pass DC
tzapu
@tzapu
Mar 08 2016 12:51
got a 70nF handy
Me No Dev
@me-no-dev
Mar 08 2016 12:51
sure
tzapu
@tzapu
Mar 08 2016 12:52
inline with reset, 70nf, doesn t seem to want to reset :(
the switch is pulling low as i see it on the analog readings
Me No Dev
@me-no-dev
Mar 08 2016 13:02
works if connected to EN
at least on my nodemcu
tzapu
@tzapu
Mar 08 2016 13:03
ah, got it to reset
as it s a wemos
tzapu
@tzapu
Mar 08 2016 13:09
2016-03-08 15.08.47.jpg
this seems to work perfectly though
jsut wondered if it might blow up or something
polarised cap there...
tzapu
@tzapu
Mar 08 2016 13:19
if this is okay, then i can have a double pourpose reset button
short press, reset, long press reset and do something else
:D
like enter config mode
Me No Dev
@me-no-dev
Mar 08 2016 13:25
yeah :D
I will advise against polarized cap
tzapu
@tzapu
Mar 08 2016 13:25
well, back to back apparently they make a non polarised one
:P
well, it doesn t exit sleep mode
Me No Dev
@me-no-dev
Mar 08 2016 13:26
yes they do :D and take space
tzapu
@tzapu
Mar 08 2016 13:26
didn t have a non polaraside µF something cap
the 70nF doesn t seem to do it
Me No Dev
@me-no-dev
Mar 08 2016 13:26
you need nano farads cap
i have it with the above scheme + 100nF inline with reset
tzapu
@tzapu
Mar 08 2016 13:28
70nF is the biggest i have
my pull up is 5k though, would that be the issue
Me No Dev
@me-no-dev
Mar 08 2016 13:28
should not be
even 1K should work
tzapu
@tzapu
Mar 08 2016 13:28
tis weird
doesn t trigger reset
Me No Dev
@me-no-dev
Mar 08 2016 13:29
maybe the pullup on the other side is the problem
and why the larger cap works
tzapu
@tzapu
Mar 08 2016 13:29
connected it directly now
Me No Dev
@me-no-dev
Mar 08 2016 13:29
as it needs longer time to charge
tzapu
@tzapu
Mar 08 2016 13:29
wire to switch
CHAE-PIL LIM
@chaeplin
Mar 08 2016 13:29
reset works at up edge, not down.
Me No Dev
@me-no-dev
Mar 08 2016 13:29
works down for me
IMG_1703.JPG
i mean I push the button and get reset
do not reset when released
but on the reset side it goes down then up in a pulse so you have both edges
CHAE-PIL LIM
@chaeplin
Mar 08 2016 13:30
I have tested it. If rst is pull down low, cpu is in hold.
Me No Dev
@me-no-dev
Mar 08 2016 13:31
yes but with cap in line it does not stay low
just pulses
tzapu
@tzapu
Mar 08 2016 13:31
2016-03-08 15.31.15.jpg
CHAE-PIL LIM
@chaeplin
Mar 08 2016 13:31
parrarel to switch.
tzapu
@tzapu
Mar 08 2016 13:31
here s what i have and does not trigger reset at all
nor with another 70NF cap in parallel to switch
with cap just on sweithc, it doesn t reset until i let go, which is not what i want
CHAE-PIL LIM
@chaeplin
Mar 08 2016 13:34
400us is a pulse of avrdude reset
mean DTR or RST
tzapu
@tzapu
Mar 08 2016 13:35
@me-no-dev your switch looks more complicated :))
Me No Dev
@me-no-dev
Mar 08 2016 13:35
pic_73_1.bmp
tzapu
@tzapu
Mar 08 2016 13:36
but yours is on EN, don t have the EN pin exposed on a weemos d1 mini
Me No Dev
@me-no-dev
Mar 08 2016 13:36
which side is the plus side of your cap and what size is it
on the image the yellow channel is the button
tzapu
@tzapu
Mar 08 2016 13:37
i ve replaced with a non polarised 70nF now
Me No Dev
@me-no-dev
Mar 08 2016 13:37
blue is the N in my case
tzapu
@tzapu
Mar 08 2016 13:38
i wonder why it won t work for me
maybe there s some pull up on the rst that screws it up
Me No Dev
@me-no-dev
Mar 08 2016 13:42
1 uF works on RST here as well
because it takes 4 times longer to charge
tzapu
@tzapu
Mar 08 2016 13:42
so i just need a bigger cap?
so 2 back to back polarised 10µF work to reset immeditelly
but, they don t reset/wake from sleep
while a direct ground pulse, not through cap seems to work fine
Me No Dev
@me-no-dev
Mar 08 2016 13:46
what do you mean they do not reset from sleep?
you have GPIO16 there as well?
tzapu
@tzapu
Mar 08 2016 13:49
no, i meant manually reset from sleep
so ground to rst while in sleep
so it seems the issue
is
back to back caps
with a single cap it s fine
it resets
pulses reset
etc
even wakes it from sleep
so i guess i just need a bigger non polaraside cap
Me No Dev
@me-no-dev
Mar 08 2016 13:50
i wonder what is the problem with the smaller cap
tzapu
@tzapu
Mar 08 2016 13:51
if i had an oscilloscope maybe i could of looked
and knew how to use it :))
Me No Dev
@me-no-dev
Mar 08 2016 13:55
yeah... I do not know what the schematic of the NodeMCU is exactly but can say for sure that pullups are different on RST and EN and the pulse looks different
that is why it worked on EN with small cap here
on the RST pin, the small cap can not reach under 1.6 volts so it can not trigger
tzapu
@tzapu
Mar 08 2016 13:56
wow, nice detective work
well, with a big cap, seems ok
and now i seem to have a 3 way button
when esp is awake - reset
when esp is asleep - wake
Me No Dev
@me-no-dev
Mar 08 2016 13:56
yes it needs lots more time and power to get charged
tzapu
@tzapu
Mar 08 2016 13:57
when long press - reset / awake and enter config
Me No Dev
@me-no-dev
Mar 08 2016 13:57
nice
can you detect which one of the threee happened
tzapu
@tzapu
Mar 08 2016 13:58
yup
I will use the tip with my reset button.
tzapu
@tzapu
Mar 08 2016 13:58
if it s normal reset, you get a reset code different than awake i think
Me No Dev
@me-no-dev
Mar 08 2016 13:59
that is basically what the scematic looks after you account for the RST pullup
tzapu
@tzapu
Mar 08 2016 13:59
and i m using the analog pin (only one empty and non boot modifying that i have currently
Me No Dev
@me-no-dev
Mar 08 2016 13:59
and I have another cap in parallel with the button to filter noise and act as debounce
tzapu
@tzapu
Mar 08 2016 13:59
and reading after boot, if lower than 512, enter config
but should work fine with a gpio
CHAE-PIL LIM
@chaeplin
Mar 08 2016 14:00
One short pulse to reset esp, if esp is running no more reset and signal can go other gpio.
That can be done with a npn tr.
tzapu
@tzapu
Mar 08 2016 14:02
learning my way up to transistors
that s next, turning off arducam with a transitor :P
Mario Mikočević
@mozgy
Mar 08 2016 14:02
who said arducam ?
tzapu
@tzapu
Mar 08 2016 14:02
damn it
Me No Dev
@me-no-dev
Mar 08 2016 14:02
hahahahahaha
tzapu
@tzapu
Mar 08 2016 14:03
this is worse than saying ludacris
Mario Mikočević
@mozgy
Mar 08 2016 14:03
;)
tzapu
@tzapu
Mar 08 2016 14:03
they say he appears in the mirror
:)))
CHAE-PIL LIM
@chaeplin
Mar 08 2016 14:03
need 2 tr for one shot, now a cap and two reg.
tzapu
@tzapu
Mar 08 2016 14:03
well, it seems to work with a cap and a reg for me now
jsut don t have a damn non polaraised cap big enough now
CHAE-PIL LIM
@chaeplin
Mar 08 2016 14:05
need an oscilloscope.. damm.
Me No Dev
@me-no-dev
Mar 08 2016 14:06
it's my most valuable tool lately
have to say I should have gotten a model with 4 channels and logic analizer
tzapu
@tzapu
Mar 08 2016 14:07
2016-03-08 16.06.16.jpg
this is what i have, with cap + to rst line for now, nothing exploded
usb upload doesn t work at all times, but hey, i am hijacking it :P
i guess it doesn t work when the esp is in deep sleep, meh
Me No Dev
@me-no-dev
Mar 08 2016 14:15
20MHz is a bit low though
Mario Mikočević
@mozgy
Mar 08 2016 14:16
it was useful for RC ESCs debugging tho
tzapu
@tzapu
Mar 08 2016 14:17
no os x :(
Mario Mikočević
@mozgy
Mar 08 2016 14:17
there is oss app
tzapu
@tzapu
Mar 08 2016 14:20
omg, that page looks soooo ollllldddd :P
Mario Mikočević
@mozgy
Mar 08 2016 14:21
yep, it even says that hantek is planned support even tho it does work
CHAE-PIL LIM
@chaeplin
Mar 08 2016 14:26
oh my. I will use tiny85 as I did at BLE400, RST to reset and block RST low in serial monitoring.
tzapu
@tzapu
Mar 08 2016 16:30
now why in the world would something like this happen
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
*WM: Connection result: 
*WM: 1
*WM: SET AP STA
*WM: 
*WM: Configuring access point... 
*WM: Timelapse
[AP] softap config unchanged
[AP] IP config Invalid resetting...
[APConfig] local_ip: 192.168.244.1 gateway: 192.168.244.1 subnet: 255.255.255.0
[APConfig] DHCP IP start: 192.168.244.100
[APConfig] DHCP IP end: 192.168.244.200
[APConfig] IP config Invalid?!
[AP] softAPConfig failed!
*WM: AP IP address: 
*WM: 0.0.0.0
*WM: HTTP server started
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
wifi evt: 1
STA disconnect: 201
Markus
@Links2004
Mar 08 2016 16:31
the old SDK had a bug like this, which version of the core do you use?
tzapu
@tzapu
Mar 08 2016 16:31
i should be on 2.1.0
Markus
@Links2004
Mar 08 2016 16:32
ok first time I see it on this version, have you tried to wipe all SDK settings?
tzapu
@tzapu
Mar 08 2016 16:32
i just put ESP.eraseConfig()
at the begging
that s what i should be on
Markus
@Links2004
Mar 08 2016 16:34
ESP.eraseConfig() has no real efect until you do ESP.reset() after it since the SDK caches some stuff in ram.
tzapu
@tzapu
Mar 08 2016 16:34
ah ha
ok
so, i tried another sketch, same libraries, even more, works fine
only lib included in the sketch that does that and not in the other is time.h
and now the problematic sketch seems to work as well?!
Markus
@Links2004
Mar 08 2016 16:37
may one sketch fix the SDK config and now its working again,
if you find a method to trigger it, I will take a look at it.
tzapu
@tzapu
Mar 08 2016 16:38
yeah, i ll try
i spoke to soon, it went haywire after that
btw, don tk now if it s of any help, but when it was misbehaving, if left on too much (like 40 seconds) it would also throw this

Decoding 29 results
0x40100705: calloc at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1678
0x40243670: bignum_exptmod at ?? line ?
0x40107624: pvPortZalloc at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/heap.c line 33
0x4020e440: esf_buf_alloc at ?? line ?
0x40210af7: ieee80211_getmgtframe at ?? line ?
0x402147a3: ieee80211_send_probereq at ?? line ?
0x4023acd6: phy_after_init_enrx at ?? line ?
0x40236a75: chip_v6_set_chan at ?? line ?
0x4021633f: scan_remove_probe_ssid at ?? line ?
0x40237ce0: chip_v6_set_chanfreq at ?? line ?
0x401055ac: sntp_get_real_time at ?? line ?
0x40215ff4: scan_pm_channel_op_cb at ?? line ?
0x40215fc8: scan_pm_channel_op_cb at ?? line ?
0x401006d8: malloc at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1658
0x40217d8d: chm_start_op at ?? line ?
0x40215fc8: scan_pm_channel_op_cb at ?? line ?
0x401075e0: pvPortMalloc at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/heap.c line 13
0x40217d54: chm_start_op at ?? line ?
0x40215fbe: scan_pm_channel_op_cb at ?? line ?
0x40215f65: scan_pm_channel_op_cb at ?? line ?
0x40216418: scan_clear_channles at ?? line ?
0x402295d5: ets_timer_handler_isr at ?? line ?
0x402295d5: ets_timer_handler_isr at ?? line ?
0x401008c8: free at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1727
0x4022961a: ets_timer_handler_isr at ?? line ?
0x40208a0b: loop_task at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp line 43
Markus
@Links2004
Mar 08 2016 16:40
sounds like deep down in the stack
tzapu
@tzapu
Mar 08 2016 16:41
and now after upload, doesn t even start anymore
 epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28): 
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
and all i get is that
Markus
@Links2004
Mar 08 2016 16:42
looks like null ptr access, what is on 0x402097e8?
tzapu
@tzapu
Mar 08 2016 16:42
don t know how to look?
Markus
@Links2004
Mar 08 2016 16:42
past it in the stack decode tool ;)
tzapu
@tzapu
Mar 08 2016 16:42
oh
so the same
i would, but it seems it froze everything
Decoding 12 results
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x402097e8: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
Michael Miller
@Makuna
Mar 08 2016 16:46
@Palatis you asked about loope, see github/makuna/task
tzapu
@tzapu
Mar 08 2016 16:52
bloody hell, i can t even upload to the wemo now, it s in an endless loop
hmmm, managed to with some hardwired jumper cables
and power off/on
may its a flash access problem.
tzapu
@tzapu
Mar 08 2016 17:08
i ll try
right now, anything i upload to it
it ends up in the thing above
over and over
need to powercycle to upload anything else
Markus
@Links2004
Mar 08 2016 17:09
i thinks its triggert by a invalide SDK config. and the epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000 looks like no access to flash when calling umm_info to me.
tzapu
@tzapu
Mar 08 2016 17:10
ok, it seems when it enters into that loop of death you can t run anything to fix flash anyway, no code seems to run
i removed that
reuploaded
same thing
Decoding 14 results
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
0x4010050c: umm_info at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c line 1000
could it be bad flash?
Markus
@Links2004
Mar 08 2016 17:13
have take a deeper look at the umm_info and not see any null ptr check oO
void ICACHE_FLASH_ATTR *umm_info( void *ptr, int force ) {

  unsigned short int blockNo = 0;

  if(umm_heap == NULL) {
      return NULL;
  }
may it helps
tzapu
@tzapu
Mar 08 2016 17:15
so add that in umm info?
Markus
@Links2004
Mar 08 2016 17:15
yes the if and the return
tzapu
@tzapu
Mar 08 2016 17:15
ok
added
uploaded a working sketch to another module, that work ok
don t need to restart arduino ide for the above to take affect, right?
the umm info change
Markus
@Links2004
Mar 08 2016 17:16
no need to, IDE compiles always all files
tzapu
@tzapu
Mar 08 2016 17:17
uploading
different
ecoding 3 results
0x402078f0: setup at /Users/alex/Documents/Arduino/ArduCAM_Mini_OV2640_Timelapse/ArduCAM_Mini_OV2640_Timelapse.ino line 330
0x4020cc70: loop_wrapper at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp line 43
0x40100958: cont_norm at /Users/alex/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/cont.S line 109
Markus
@Links2004
Mar 08 2016 17:19
can you try:
 if (umm_heap == NULL) {
    umm_init();
  }
tzapu
@tzapu
Mar 08 2016 17:19
system param error
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff 
ff ff ff ff ff ff ff ff 03 00 ff ff 06 00 00 00 47 6f 61 6e 67 61 00 00 00 94 0d ff 3f 27 5c 10 
40 90 0e ff 3f 94 0d ff 3f ff 00 00 00 01 ff ff 03 05 03 00 03 00 00 72 65 6d 6f 74 6c 79 31 33 
3b 00 00 00 01 00 00 00 d7 95 fe 3f 24 78 20 40 ff 00 00 00 05 00 00 00 10 96 fe 3f 6c 93 fe 3f 
54 0e ff 3f 06 00 00 00 54 0e ff 3f a1 70 20 40 d6 95 fe 3f 00 00 00 00 b9 24 df e3 30 9b 8c 07 
75 67 92 f9 30 9c 8e fa db f1 ec 04 65 6b bf 0a 09 51 87 3d 39 d3 dc f6 ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff 00 ff ff ff ff ff ff 09 00 00 00 54 69 6d 65 6c 61
and now it seems to start, but throws that as part of boot
Markus
@Links2004
Mar 08 2016 17:19
ok invalide SDK config
normally the SDK restore default settings when it prints: system param error
tzapu
@tzapu
Mar 08 2016 17:22
well, i can t seem to reset it with
void setup() {
  ESP.eraseConfig();
  ESP.reset();
Markus
@Links2004
Mar 08 2016 17:23
the eraseConfig will erase the config, and not write any use full to the Flash
tzapu
@tzapu
Mar 08 2016 17:24
so is there anything i can do?
Markus
@Links2004
Mar 08 2016 17:24
if you remove the ESP.eraseConfig(); ESP.reset(); you normally get one boot with system param error and after this the SDK restore the default settings.
tzapu
@tzapu
Mar 08 2016 17:24
ah, doesn t seem to do that
it goes on and on
wdt reset
after system param error
and on and on
Markus
@Links2004
Mar 08 2016 17:25

have you tried

 if (umm_heap == NULL) {
    umm_init();
  }

?

tzapu
@tzapu
Mar 08 2016 17:25
oh no
missed it
sorry
Markus
@Links2004
Mar 08 2016 17:26
no problem.
tzapu
@tzapu
Mar 08 2016 17:26
uploading now
Markus
@Links2004
Mar 08 2016 17:26
may the SDK work better when we not return NULL ;)
tzapu
@tzapu
Mar 08 2016 17:26
this is such a weird thing to get into
Markus
@Links2004
Mar 08 2016 17:27
unfortunately the SDK not give any function to reset the config.
tzapu
@tzapu
Mar 08 2016 17:28
ok
so
it s better
or seems so
i can now see the println
but it still spews a lot of crap before that
not readable even on 74880
but seems to start
Markus
@Links2004
Mar 08 2016 17:28
try to set AP or STA config this trigger a write the flash
tzapu
@tzapu
Mar 08 2016 17:29
ok
system param error
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff 
ff ff ff ff ff ff ff ff
again
and after restart
more of the same
void setup() {

  Serial.begin(115200);
  Serial.println();
  Serial.println();
  Serial.println("Start");
  WiFi.mode(WIFI_AP);

}

void loop() {
  // sleeping so wont get here

}
the sketch
and unfortunatelly i need to go :(
i hope there s some way to ressurect this module
Markus
@Links2004
Mar 08 2016 17:32
will push the umm_info fix to git.
you can try to wipe the flash with esptool
tzapu
@tzapu
Mar 08 2016 17:32
ok, will do as soon as i am able
and will message you here
cheers
Me No Dev
@me-no-dev
Mar 08 2016 17:33
do not post your conf also :D
i know your ap/pass now
tzapu
@tzapu
Mar 08 2016 17:33
oh
it was in the hex falsh above?
Me No Dev
@me-no-dev
Mar 08 2016 17:33
yup
tzapu
@tzapu
Mar 08 2016 17:34
HA!
Markus
@Links2004
Mar 08 2016 17:34
you can edit the post, so not everyone will see it in the history
tzapu
@tzapu
Mar 08 2016 17:34
everyone can read it except the bloody ESP
Markus
@Links2004
Mar 08 2016 17:36
you post it two times
tzapu
@tzapu
Mar 08 2016 17:36
i know
can t edit the first
Markus
@Links2004
Mar 08 2016 17:37
k thats bad
tzapu
@tzapu
Mar 08 2016 17:37
no problem
i ll change it, no real worry
Markus
@Links2004
Mar 08 2016 17:37
yes better by save
Me No Dev
@me-no-dev
Mar 08 2016 17:40
I might have spenty too much time watching defcon and other hacker stuff lately :D
tzapu
@tzapu
Mar 08 2016 17:41
:))
ok
thanks guys
byee
Michael Miller
@Makuna
Mar 08 2016 17:44
You don't change your passwords on the hour?
Me No Dev
@me-no-dev
Mar 08 2016 17:45
:D
the problem is the bssid
can be used for location and other neat stuff
and since @tzapu lives not far from here.... :D
password helps as well
Victor Tseng
@Palatis
Mar 08 2016 18:51
@igrr @skorokithakis those are not garbage lines, those are esp8266 boot messages. set uart baudrate to 74880 and you can read them.
ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
Stavros Korokithakis
@skorokithakis
Mar 08 2016 18:52
@Palatis oh, interesting
Victor Tseng
@Palatis
Mar 08 2016 18:52
something like that
the fucked up thing is, on my linux box I can't get ttyUSB0 to open @ 74880...
dunno why they use 74880...
Victor Tseng
@Palatis
Mar 08 2016 18:59
does anyone run into crash with WiFiClientSecure + new UMM allocator?
I get stack dumps ends up inside add_hmac_digest at /Users/igrokhotkov/e/axtls/e1/ssl/tls1.c line 639
tzapu
@tzapu
Mar 08 2016 19:10
Damn it guys, now you vemade me paranoid, went and changed passwords and bssids around
Victor Tseng
@Palatis
Mar 08 2016 19:29
shouldn't be a memory leak, I still have around 32kb free heap when I call client.connect()
Victor Tseng
@Palatis
Mar 08 2016 19:45
strange, it doesn't crash now if I do Serial.print()...
Victor Tseng
@Palatis
Mar 08 2016 21:27
really weird, if i do serial.print() the problems are gone...
Aditya Tannu
@AdySan
Mar 08 2016 21:36
@Palatis somthing to do with using 26MHz crystal vs 40MHz, also scales down 115200 to 74880
Victor Tseng
@Palatis
Mar 08 2016 22:14
yeah maybe should just edit the bootloader to start uart in 115200 or 230400...
Angus Gratton
@projectgus
Mar 08 2016 23:07
Palatis: most linux terminal programs don't do 74880, but if you install python-serial it comes with a tool called "miniterm.py" which can do it
Martin Ayotte
@martinayotte
Mar 08 2016 23:21
Also, actually, not all USB-TTL support 74880.
Angus Gratton
@projectgus
Mar 08 2016 23:32
martinayotte: which ones don't?