These are chat archives for esp8266/Arduino

9th
Jan 2016
Chris Elsworth
@celsworth
Jan 09 2016 05:13
some nice work going into modem sleep commits :) yay for sdk 1.5 that enables it
or rather, yay for sdk 1.5.1 that will hopefully be stable and enable it
tried testing git HEAD in platformio but got some error about rcons, will ask @ivankravets about it tomorrow
PyB
@PyBerger
Jan 09 2016 08:32
if you guys want to do a quick test, I can share my SDK folder with the mods I did (quick and dirty integration)
Markus
@Links2004
Jan 09 2016 10:38
will integrate 1.5.1 :)
many "Optimize" for wifi sounds like bugfix to me.
they changed only the binarys no header or interface changed
PyB
@PyBerger
Jan 09 2016 10:56
when you have a branch with it integrated, I'll make a clean test to make sure it works as I have seen it on my quick test :)
Markus
@Links2004
Jan 09 2016 11:00
pull request for staring ongoing #1394
PyB
@PyBerger
Jan 09 2016 11:04
waiting :)
Markus
@Links2004
Jan 09 2016 11:06
the tests need around ~20 mins
Mario Mikočević
@mozgy
Jan 09 2016 11:08
the best optimization is -> 14.boot.bin is upgrade to version 1.5, resolving boot failure when firmware is upgraded over the air (OTA).
Me No Dev
@me-no-dev
Jan 09 2016 11:08
and we do not use that boot bin :)
Ivan Kravets
@ivankravets
Jan 09 2016 11:15
@celsworth please read my comment here https://github.com/platformio/platformio/issues/401#issuecomment-166958952
where is described how to use ESP8266 HEAD with PlatformIO.
Markus
@Links2004
Jan 09 2016 11:24
merged
Me No Dev
@me-no-dev
Jan 09 2016 11:30
@Links2004 you mind nerging the pwm fix before someone complains that PWM is not working
Markus
@Links2004
Jan 09 2016 11:33
"This branch is out-of-date with the base branch"
you need to sync it with the master then i merge it.
Me No Dev
@me-no-dev
Jan 09 2016 11:35
done
out of sync because of that sdk commit you just merged
Markus
@Links2004
Jan 09 2016 11:40
yes, i have merged the md5 stuff and the sdk.
can only merge on pull request since the other goes out auf sync when i do.
PyB
@PyBerger
Jan 09 2016 12:05
Tested : it works !
SDK 1.5.0 had probably some bunch of crap in it.
tzapu
@tzapu
Jan 09 2016 12:08
Will be able to test as well in around 4 hours. Get github core? @Links2004 you are amazing
Markus
@Links2004
Jan 09 2016 12:29
yes the SDK 1.5.1 is in the latest git
Mario Mikočević
@mozgy
Jan 09 2016 12:58
Sketch size: 348404
Free size: 2793472
Heap: 34440
Boot Vers: 31
CPU: 160MHz
SDK: 1.5.1(e67da894)
Chip ID: 10938218
Flash ID: 1458415
Flash Size: 4194304
Vcc: 3431
burp ->
LmacRxBlk:1
LmacRxBlk:1
Fatal exception 9(LoadStoreAlignmentCause):
epc1=0x4010593e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00e8a101, depc=0x00000000

Exception (9):
epc1=0x4010593e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00e8a101 depc=0x00000000

ctx: cont
sp: 3fff2b60 end: 3fff2f80 offset: 01a0
Markus
@Links2004
Jan 09 2016 13:03
excvaddr=0x00e8a101 is out of everything good.
what code is on 0x4010593e?
Mario Mikočević
@mozgy
Jan 09 2016 13:05
what is the easiest way to find that out ?
Markus
@Links2004
Jan 09 2016 13:06
objdump
"$(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-objdump" -S $(PROJECT_NAME).elf > $(PROJECT_NAME).dobj
Mario Mikočević
@mozgy
Jan 09 2016 13:15
where are *elf and *dobj when you use OTA on windows ?
Markus
@Links2004
Jan 09 2016 13:21
temp dir of the IDE
Mario Mikočević
@mozgy
Jan 09 2016 13:44
well, can't find it, https://www.arduino.cc/en/Hacking/BuildProcess says it's in \Documents and Settings but that dir is empty
Mario Mikočević
@mozgy
Jan 09 2016 13:49
found it -> \Users\$USER\AppData\Local\Temp\
Mario Mikočević
@mozgy
Jan 09 2016 13:59
4010593c:    056d          mov.n    a6, a5
4010593e:    0558          l32i.n    a5, a5, 0
40105940:    f83527            bltu    a5, a2, 4010593c <pvPortRealloc+0x54>
Markus
@Links2004
Jan 09 2016 14:10
looks like they still not have fixed the bugs there.
tzapu
@tzapu
Jan 09 2016 16:11
@Links2004 1.5.1 seems to have sorted my disconnect issue without setting WIFI_STA first
Mario Mikočević
@mozgy
Jan 09 2016 16:11
and my arducam is a lot more stable too
tzapu
@tzapu
Jan 09 2016 16:12
ah, @mozgy my man
arducam
:D worth it
?
as some timelapse device
Mario Mikočević
@mozgy
Jan 09 2016 16:12
yes it is
tzapu
@tzapu
Jan 09 2016 16:12
i mean, does it work ok? quality ok? have you got the 2mp version or 5?
Mario Mikočević
@mozgy
Jan 09 2016 16:13
just did esp+spi connectors pcb
2pm here
tzapu
@tzapu
Jan 09 2016 16:13
uploading pics as you get them or storing them?
Mario Mikočević
@mozgy
Jan 09 2016 16:13
it is enough for now
both works now
tzapu
@tzapu
Jan 09 2016 16:13
sorry for the avalanche of questions :P
Mario Mikočević
@mozgy
Jan 09 2016 16:13
np, that is this chat for
tzapu
@tzapu
Jan 09 2016 16:14
how big is a churned out jpg?
i mean could i save a few pics on SPIFFS and upload once in a while?
Mario Mikočević
@mozgy
Jan 09 2016 16:14
atm I'm set 640x480 - each pic is around 20k
actualy more ->
SPI FIFO 29696, Actual 28854
SPI FIFO 24576, Actual 23705
SPI FIFO 26624, Actual 25915
SPI FIFO 24576, Actual 23585
SPI FIFO 25600, Actual 25350
SPI FIFO 24576, Actual 23823
SPI FIFO 25600, Actual 24597
SPI FIFO 32768, Actual 32498
SPI FIFO 24576, Actual 23906
SPI FIFO 29696, Actual 29264
SPI FIFO 32768, Actual 31931
SPI FIFO 28672, Actual 28078
SPI FIFO 24576, Actual 24060
tzapu
@tzapu
Jan 09 2016 16:15
i guess lower res whould actually be enough for timelapse
was tring to think if there s any way to make a portable, battery powered timelapse machine, that you take home once in a while and press a button to upload
but to be honest by the time i get around to doing that, somebody else will most likely have done it :P
Mario Mikočević
@mozgy
Jan 09 2016 16:17
thats the idea :)
tzapu
@tzapu
Jan 09 2016 16:17
thanks, i will have to order one then... sooooon :D
FWeinb
@FWeinb
Jan 09 2016 16:18
You could get a cheap SD card board, to store the images.
Mario Mikočević
@mozgy
Jan 09 2016 16:18
thats on todo aswell, got one very cheap SD board and really small
tzapu
@tzapu
Jan 09 2016 16:18
true, was thinking of keeping the components to a minimum...
soooo many choice, soo many options
sooo much time to get them shipped from china
:P
Markus
@Links2004
Jan 09 2016 16:19
@FWeinb for the ESP you need a adapter with out 5V to 3V3 ;)
FWeinb
@FWeinb
Jan 09 2016 16:19
The level conversion circuit board that can interface level is 5V or 3.3V
Markus
@Links2004
Jan 09 2016 16:19
simple solder to the SD to micro SD adapter and you are done
FWeinb
@FWeinb
Jan 09 2016 16:19
In the description.
Or am I missing something?
Markus
@Links2004
Jan 09 2016 16:20
the ESP runs at 3.3V and the SD card too, why using a level converter there?
Mario Mikočević
@mozgy
Jan 09 2016 16:21
SD board I have works on 3.3
tzapu
@tzapu
Jan 09 2016 16:22
@Links2004 i can also confirm that esp8266/Arduino#1292 and esp8266/Arduino#1293 seem sorted with the latest 1.5.1
nice "improvements" from expressif :P
FWeinb
@FWeinb
Jan 09 2016 16:22
It was the cheapest I could find.
Markus
@Links2004
Jan 09 2016 16:23
simple way: sd
and most included with the micro SD card :)
@tzapu nice two strange problems less.
FWeinb
@FWeinb
Jan 09 2016 16:23
And I can talk to it using SPI?
Markus
@Links2004
Jan 09 2016 16:23
yes
SD cards have a SPI interface
FWeinb
@FWeinb
Jan 09 2016 16:24
Okay. I should have done some research...
tzapu
@tzapu
Jan 09 2016 16:24
now that is CHEAP
:P
FWeinb
@FWeinb
Jan 09 2016 16:24
Just ordered it because it was just 80cent.
tzapu
@tzapu
Jan 09 2016 16:25
@Links2004 indeed, nice to see those problems go away
Mario Mikočević
@mozgy
Jan 09 2016 16:25
find cheapest seller, just wanted to show what I bought
tzapu
@tzapu
Jan 09 2016 16:26
guys, there is not a day when i read stuff here, that i don t learn something new
FWeinb
@FWeinb
Jan 09 2016 16:34
Any good and cheap LCD for the ESP8266 you know.
Markus
@Links2004
Jan 09 2016 16:35
ILI9341
FWeinb
@FWeinb
Jan 09 2016 16:37
This looks good. Why do these display board always have an sd card reader attached?
Markus
@Links2004
Jan 09 2016 16:40
may to store images there, but no need to use it.
FWeinb
@FWeinb
Jan 09 2016 16:40
Will get some of these displays. It's just to cheap to not play with these things.
FWeinb
@FWeinb
Jan 09 2016 16:41
Oh good point! That one is better.
tzapu
@tzapu
Jan 09 2016 16:48
@Links2004 is there a function to get the current set access point name from the ESP8266WiFi class when in AP mode?
Markus
@Links2004
Jan 09 2016 17:00
not in the arduino API in SDK yes
tzapu
@tzapu
Jan 09 2016 17:32
ok, thank you
Martin Ayotte
@martinayotte
Jan 09 2016 18:23
I've updated my environment to latest github, and I'm getting a watchdog issue during SPIFFS format which wasn't there before. Any clues ?
Markus
@Links2004
Jan 09 2016 18:24
soft or hard wdt?
espressif has changed/fixed something at the wtd, or "Optimize" how they say.
Martin Ayotte
@martinayotte
Jan 09 2016 18:33

echo = spiformat

ets Jan 8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~Fatal exception (0):
epc1=0x400ef278, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x400ef278, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):

I'm currently taking lunch, but after, I will turn On DEBUG.
Martin Ayotte
@martinayotte
Jan 09 2016 18:58

(I'm back) Weird stuff : I've turned On Debug, and it worked ! Turn it Off again, it worked ! But to repro it again, I've switched Flash size (my module is 4Mbits) to 512K, repro again, but this time it is a Soft WDT : echo = spiformat

Soft WDT reset

ctx: cont
sp: 3fff3540 end: 3fff3f00 offset: 01b0

stack>>>
3fff36f0: 00000000 4000444e feefeffe feefeffe
3fff3700: 00000000 4000420c 60000200 400e65e4

I've switched Flash size again, with Debug turned On, and now it didn't work. I've got WDT reset along the debug traces :
SPIFFSImpl: allocating 512+180+1400=2092 bytes
SPIFFSImpl: mounting fs @100000, size=2fb000, block=2000, page=100
SPIFFSpl: mount rc=-1

ets Jan 8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~Fatal exception (0):
epc1=0x400ef278, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):

Mario Mikočević
@mozgy
Jan 09 2016 19:07
SPI FIFO 23552, Actual 23178
SPIFFS format done!
works here
Martin Ayotte
@martinayotte
Jan 09 2016 19:09
After some other tests, it is random, it worked 3 time out of 10
Mario Mikočević
@mozgy
Jan 09 2016 19:10
CPU: 160MHz
SDK: 1.5.1(e67da894)
here
Martin Ayotte
@martinayotte
Jan 09 2016 19:10
I will try other module, but it is strange, it was working fine with my previous 2.0.0-RC2
Martin Ayotte
@martinayotte
Jan 09 2016 19:20
Same thing with other modules. And when a trail succeed, I can reformat many times without problem until I switch to new Flash size.
@mozgy , do you means I should switch to 160Mhz ?
Mario Mikočević
@mozgy
Jan 09 2016 20:03
@martinayotte you don't have to, I just c/p what I used atm
wifi is so far very stable, not a single disconnection <knock knock on wood>
Mario Mikočević
@mozgy
Jan 09 2016 20:24
hmm, WiFi is now stable but SPIFFS access sometimes produces Fatal exception 9
Markus
@Links2004
Jan 09 2016 20:25
@mozgy at least something we have the code too
Mario Mikočević
@mozgy
Jan 09 2016 20:26
this I've got this crap ->
Fatal exception 9Fatal exception 9Fatal exception 9Fatal exception 9Fatal exception 9Fatal exception 9Fatal exception 9Fatal exception 9Fatal exce
Exception (▒W@3
ctx: sys
sp: 3ffe8220 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffe83c0:  0c100804 00000064 00400814 500007dd
3ffe83d0:  010002f2 00000000 4024a240 40105cc3
Markus
@Links2004
Jan 09 2016 20:27
looks like the serial it self is part of the problem, may the serial IRQ
Mario Mikočević
@mozgy
Jan 09 2016 20:27
hmm, good point, lemme disable Serial completely and retest reading from SPIFFS ..
Mario Mikočević
@mozgy
Jan 09 2016 20:33
I wonder what is wrong with firefox - I've set /snap page that gets direct data from arducam SPI into http, firefox asks that page three times in one session
every other browser (chrome, ie, safari) ask that just once
Mario Mikočević
@mozgy
Jan 09 2016 20:39
@Links2004 can't crash ESP with ->
#define DEBUG false
#define Serial if(DEBUG)Serial
Markus
@Links2004
Jan 09 2016 20:41
may the Serial IRQ comes when there is no access to flash (SPIFFS using it),
normally the IRQ is disabled then, but its the best reason i have in mind.
Me No Dev
@me-no-dev
Jan 09 2016 21:30
By the way I have a version if the Serial library that does not use interrupts and buffers
it's the version in ESP31B's repo
@igrr also mentioned moving this direction
you can print from anywhere :)