These are chat archives for esp8266/Arduino

11th
Aug 2015
Ivan Grokhotkov
@igrr
Aug 11 2015 16:54
Uploading a 3Mb spiffs image to flash takes so much time... so I decided to add zlib compression to esptool
Neil Kolban
@nkolban
Aug 11 2015 16:55
Is the issue the UART transmission rate or the flash write speed?
Ivan Grokhotkov
@igrr
Aug 11 2015 16:55
uart transmission rate
both, actually, because erasing 3Mb also takes a lot of time
Neil Kolban
@nkolban
Aug 11 2015 16:56
What about a function that listens on a port and receives the SPIFFS data over a socket?
Ivan Grokhotkov
@igrr
Aug 11 2015 16:56
but mostly UART (at 115200)
Neil Kolban
@nkolban
Aug 11 2015 16:56
I am assuming that one can write to flash from an app?
Ivan Grokhotkov
@igrr
Aug 11 2015 16:57
we can do something like FTP server, but that's not as good as being able to load from IDE
I mostly got compression working today
Neil Kolban
@nkolban
Aug 11 2015 16:58
That is awesome!! I haven't started looking at your SPIFFS work yet but am excited looking forward to it.
Ivan Grokhotkov
@igrr
Aug 11 2015 16:58
esptool compresses the binary, then loads a decompression routine into ESP's RAM, and then sends the compressed binary down the wire.
Neil Kolban
@nkolban
Aug 11 2015 17:00
If one wanted to learn the details of address space of the ESP, is there any recommended reading material? I wanted to cover that in my book but I'm afraid that I can't find the information I am looking for yet.
Ivan Grokhotkov
@igrr
Aug 11 2015 17:01
wiki page on ESP8266 github has the memory map mostly covered
CPU address space, that is
flash memory layout depends on the application (I.e. is different between say nodemcu and arduino)
Neil Kolban
@nkolban
Aug 11 2015 17:02
I think that is what confuses me .... there appears to be multiple "address spaces" and I have failed to get my mind around that.
this is your normal "address space", I.e. the one seen by CPU
but whatever lives in flash memory is not directly related to CPU address space
some things are loaded from flash into RAM, some things are dynamically mapped at run time, but flash is not a memory-mapped peripheral as a whole
to understand what is loaded from flash to RAM you need to understand the notion of code and data segments. this is not something Esp8266-specific, you can read about data/rodata/bss/text in the context of other CPUs
Neil Kolban
@nkolban
Aug 11 2015 17:09
awesome ... I'm saving these chats ... (sorry started a work call that will last for hours :-)
Harrison Mclean
@h4rm0n1c
Aug 11 2015 20:09
921600bps uploads are stable for me, I'd love to test zlib uploads when it's ready.
Angus Gratton
@projectgus
Aug 11 2015 22:58
h4rm0n1c: what serial adapter chip are you using at 921600?