These are chat archives for esp8266/Arduino

19th
Jun 2015
chad cormier roussel
@chadouming
Jun 19 2015 01:11
Eh, if i was in bulgaria my connection with my germany server would probably be better than 128ms xD
Me No Dev
@me-no-dev
Jun 19 2015 06:15
probably :) what's the IP?
chad cormier roussel
@chadouming
Jun 19 2015 06:17
148.251.122.87
Me No Dev
@me-no-dev
Jun 19 2015 06:19
64 bytes from 148.251.122.87: icmp_seq=0 ttl=53 time=52.163 ms
yup
Me No Dev
@me-no-dev
Jun 19 2015 08:25
anybody here have an I2S DAC and SD Card breakout?
mine will come in not less than 20 days
tried with 10 bit SPI DAC (not audio) and it sounds close to the PWM quality, which is totally unacceptable
soo before pushing the I2S code, I would like someone to confirm that sound quality is good with I2S Audio DAC
Ivan Grokhotkov
@igrr
Jun 19 2015 12:11
LOL and facepalm
i decided to take a look at the WDT reset issue with log()
Me No Dev
@me-no-dev
Jun 19 2015 12:12
and?
Markus
@Links2004
Jun 19 2015 12:12
you found the problem?
Ivan Grokhotkov
@igrr
Jun 19 2015 12:12
given that my post-mortem debug function is ready, i decided to give it a go
turned out, wasn't even necessary
Screen Shot 2015-06-19 at 15.15.27.png
Screen Shot 2015-06-19 at 15.16.21.png
funny right?
Markus
@Links2004
Jun 19 2015 12:17
ok .... endlos loop
Me No Dev
@me-no-dev
Jun 19 2015 12:18
i think sqrt also gave wdt reset
or was it something pow
maybe it was pow
Ivan Grokhotkov
@igrr
Jun 19 2015 12:19
Screen Shot 2015-06-19 at 15.18.40.png
sure thing
pow() is okay by the way
Ivan Grokhotkov
@igrr
Jun 19 2015 12:19
so the workaround for sqrt was to use pow(, 0.5);, which i did
yep :)
Markus
@Links2004
Jun 19 2015 12:20
so we need to implement them.
Ivan Grokhotkov
@igrr
Jun 19 2015 12:57
i don't think it is necessary
these functions are already there in libm.
i just removed them from libc_replacements.c
seems to work:
log: 1.14
log10: 0.50
logf: 1.14
log10f: 0.50
sqrt: 1.77
sqrtf: 1.77
sinh: 11.55
sinhf: 11.55
cosh: 11.59
coshf: 11.59
atan2: 0.46
atan2f: 0.46
hypot: 7.02
hypotf: 7.02
Holger Lembke
@holgerlembke
Jun 19 2015 13:11
all the stuff that Espressif is building, is it moved into the esp8266 by default? I mean, I don't want their cloud-stuff... couldn't that be remove?
Ivan Grokhotkov
@igrr
Jun 19 2015 13:12
if you don't use the cloud stuff, it won't be there in the final binary
Holger Lembke
@holgerlembke
Jun 19 2015 13:14
so these two files i see uploading is the "entire esp", nothing more remains?
(beside spiffs or so)
Ivan Grokhotkov
@igrr
Jun 19 2015 13:17
one file
oh, you're on the old version
yes, two files
these files contain the complete esp8266 Arduino core, all the necessary components of the libraries, and your sketch
newer version (one file uploaded) also contains second stage bootloader
Holger Lembke
@holgerlembke
Jun 19 2015 13:19
so the freertos stuff, ssl, etc etc.
Ivan Grokhotkov
@igrr
Jun 19 2015 13:20
freertos is a different world altogether
we link only -lm -lgcc -lhal -lphy -lnet80211 -llwip -lwpa -lmain -lpp -lsmartconfig
so ssl isn't there
Holger Lembke
@holgerlembke
Jun 19 2015 13:24
you leave me confused. to clarify it: if a fresh esp falls out of the factory, it is empty. uploading my arduino stuff and everything works? I assumed that there is a basic os inside....
there is no real good explanation for this on the web.
Me No Dev
@me-no-dev
Jun 19 2015 13:25
only the bootloader and the things in the linker are in the chip's rom
everything else lives on the flash
if you get a blankchip, there will be nothing
and at the same time will be just the same as calling chip_erase
Michael Miller
@Makuna
Jun 19 2015 17:12
@holgerlembke We don't need no stinking os ;-)
Just like most microcontrollers, there is no embedded os as much as there is an image that you build and run; that image may contain OS with you app, or it just maybe some glue (boot loader) that just runs your app.
Ivan Grokhotkov
@igrr
Jun 19 2015 17:52
@Links2004 I would have merged this, but it seems there are extra commits not related to your pull (probably from master branch) esp8266/Arduino#438
Markus
@Links2004
Jun 19 2015 18:12
i have merged the arduino branch in to get latest AVR changes i also have ported them to the ESP
Ivan Grokhotkov
@igrr
Jun 19 2015 18:13
okay, got it
also I had a question regarding the change in HardwareSerial
    while(_tx_buffer->room() == 0) {
        yield();
        uart_arm_tx_interrupt(_uart);
    }
why does uart_arm_tx_interrupt need to be called here?
is there a situation when room will be 0 after yield and the interrupt will not be armed at the same time?
Markus
@Links2004
Jun 19 2015 18:16
to get the data from the "cbuf" to the FIFO,
for some reasons somtimes the FIFO has free space and the "cbuf" was full, this fix this case.
in the bad case the while where running endless. (there i found it)
so the irq where disabled FIFO was empty but "cbuf" was full --> endless loop.
Ivan Grokhotkov
@igrr
Jun 19 2015 18:18
ok, thanks. must have missed some edge case
Ivan Grokhotkov
@igrr
Jun 19 2015 18:36
staging package updated with the latest changes
@Links2004 i will merge your changes on the weekend since i have made some conflicts which i need to resolve
Markus
@Links2004
Jun 19 2015 18:37
ok
Ivan Grokhotkov
@igrr
Jun 19 2015 18:38
if there are no significant issues with the staging package over the next two days (I haven't found any myself) will push it as a "stable" package
you sure there should be 3 parenthesis ?
I think it should be 2
Markus
@Links2004
Jun 19 2015 21:25
yes :) dam auto merge.
chad cormier roussel
@chadouming
Jun 19 2015 21:26
was pretty much the only thing different in your main arduino pull and mine xD
Markus
@Links2004
Jun 19 2015 21:26
i have never compiled the java code from the IDE, i use eclipse as IDE.
fixed.
chad cormier roussel
@chadouming
Jun 19 2015 21:29
the 3 or 4 lines, not only that one ?
Markus
@Links2004
Jun 19 2015 21:29
yes
4 lines
chad cormier roussel
@chadouming
Jun 19 2015 21:30
cool :D
fast enough
Markus
@Links2004
Jun 19 2015 21:33
your merge of the readme looks broke.
chad cormier roussel
@chadouming
Jun 19 2015 21:33
yup
fixed
just not pushed
Markus
@Links2004
Jun 19 2015 21:33
:)
chad cormier roussel
@chadouming
Jun 19 2015 21:34
building good so far, if it work i'll be happy
it's cool that they finally started to use java 8 tho
Me No Dev
@me-no-dev
Jun 19 2015 21:41
so besides java 8 anything else new?
chad cormier roussel
@chadouming
Jun 19 2015 21:59
you can now build 676 new sketch / day xD
  • they Added link to unofficial boards support list in preferences
Me No Dev
@me-no-dev
Jun 19 2015 22:05
cool :) nothing major
chad cormier roussel
@chadouming
Jun 19 2015 22:07
yeah, nothing really big up to now