These are chat archives for esp8266/Arduino

25th
Jul 2016
Stavros Korokithakis
@skorokithakis
Jul 25 2016 09:36
hey guys
i got a sonoff, which runs on an ESP8266 with 1 MB flash. is it possible to use OTA on that, or do I need to open it up every time I want to flash something?
Stavros Korokithakis
@skorokithakis
Jul 25 2016 10:32
Http update fails as well, although I think direct OTA fails for some other reason. HTTP OTA says firmware is wrong size
Holger Lembke
@holgerlembke
Jul 25 2016 10:53
This message was deleted
Stavros Korokithakis
@skorokithakis
Jul 25 2016 12:34
"bin for wrong flash size"
Miguel Angel Salinas Gancedo
@masalinas
Jul 25 2016 12:50
Somebody use. Seeeduino GPRS and any MQTT client with it??
Stavros Korokithakis
@skorokithakis
Jul 25 2016 12:52
@masalinas i'm afraid not
i changed the board size in platformio, now i get "Flash config wrong real: 1048576 IDE: 4194304". @ivankravets, would you have any idea? i have a 1M board
Ivan Kravets
@ivankravets
Jul 25 2016 12:55
@skorokithakis where did you change this size?
Stavros Korokithakis
@skorokithakis
Jul 25 2016 12:56
@ivankravets i used board = esp01_1m in the platformio.ini
i don't know why it would think that the IDE flash is 4m, shouldn't it be 1m?
Ivan Kravets
@ivankravets
Jul 25 2016 12:57
Please take a look at docs how to change flash size
Docs > Platforms > Espressif
Does it work now?
Stavros Korokithakis
@skorokithakis
Jul 25 2016 12:59
oh, i see, let me try that... will it hurt anything if i change to a size that's incompatible? i thought that esp01_1m would have 1m of flash
Ivan Kravets
@ivankravets
Jul 25 2016 12:59
It should have. I'll check
Which LD script is used? Please see linker output
Stavros Korokithakis
@skorokithakis
Jul 25 2016 13:01
what does that look like?
263933 3792 30640 298365 48d7d .pioenvs/esp01/firmware.elf
by the way, do i need firmware.elf or firmware.bin?
@ivankravets xtensa-lx106-elf-g++ -o .pioenvs/esp01/firmware.elf -Os -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wra p,register_chipv6_phy -Wl,-T"esp8266.flash.1m256.ld" .pioenvs/esp01/src/tmp_ino_to.o -L/home/stavros/.platformio/packages/framework-arduinoespressif/tools/sdk/lib -L/home/stavros
Ivan Kravets
@ivankravets
Jul 25 2016 13:13
esp8266.flash.1m256.ld hm.. the LD script is valid
Stavros Korokithakis
@skorokithakis
Jul 25 2016 13:20
yeah, that's weird
maybe i made some mistake
anyway, it works now, thank you!
sticilface
@sticilface
Jul 25 2016 15:48
question: is writing to RTC memory using rtcUserMemoryWrite to RAM, and not subjected to any wear like FLASH is?
Martin Ayotte
@martinayotte
Jul 25 2016 15:49
No, since it is RAM ...
sticilface
@sticilface
Jul 25 2016 15:53
good:) that is going to be very useful then:). thanks
Clemens Kirchgatterer
@everslick
Jul 25 2016 18:27
why the hell is this called RTC ram? no RTC as far as i can see ...
Martin Ayotte
@martinayotte
Jul 25 2016 19:23
RTC sometimes means "Real Time Clock", but also sometimes "Real Time Counter", which is the case for ESP and it deepSleep()