These are chat archives for esp8266/Arduino

15th
Sep 2015
Martin Ayotte
@martinayotte
Sep 15 2015 02:16
@igrr and @Makuna, could you please look at the outstanding issue esp8266/Arduino#753 ? Many people complains about crashes with PROGMEM. But the more I dig into the issue, the more my hands/arms are going into a wringer ... :-( But in many after-though, all those crashes are maybe coming form the fact that browsers are doing simultaneous queries to server, but the ESP8266WebServer maybe can't tolerate concurrent requests.
Mario Mikočević
@mozgy
Sep 15 2015 12:04
@igrr cannot open linker script file eagle.flash.4m1m.ld: No such file or directory .. is this fixed or should I open new issue ?
d-anders
@d-anders
Sep 15 2015 16:08
@martinayotte So sending binary files (images etc) from the filesystem works but not if they are in progmem?
Martin Ayotte
@martinayotte
Sep 15 2015 17:39
To be able to send binary using PROGMEM, the PR mentioned above, esp8266/Arduino#753, needs to be merge. But maybe there are still issues with concurrent requests, but at least, with that, I was able to put PNG/JPG inside PROGMEM.
d-anders
@d-anders
Sep 15 2015 17:56
ok
is it for compability reasons, or is there any other specific reason for using progmem?
onkelfunny
@onkelfunny
Sep 15 2015 18:00
Hello, i use the reset schematic from nodemuc v 1.0 and a ftdi chip to program the module. i can't use the standard ftdi pins because i need the rts pin. is it possible to change the schematic to use the standard pins from the ftdi like the arduino pro mini?
Martin Ayotte
@martinayotte
Sep 15 2015 18:49
@d-anders, the PROGMEM is used to place content in Flash without the need to be copied entirely into RAM before usage. That's is why adding send_P() and write_P() allows to send big binaries from Flash directly to network while only using 1460 for packet buffer. Although it won't occurs often, but let imagine that you wish to send a 100KB PNG image, it won't fit in RAM, so you sketch won't even be able to compile, with PROGMEM it will.
Markus
@Links2004
Sep 15 2015 19:08
@onkelfunny possible yes and no, full automatic download is not possible, if you use DTR for resetting the ESP you need manually jumper GPIO0 to GND for uploading and open (pullup) for running the application
d-anders
@d-anders
Sep 15 2015 19:15
i would have guessed it is achieved automatically by using streamfile but i guess it isnt
onkelfunny
@onkelfunny
Sep 15 2015 20:17

@Links2004 i don't need a automatic upload. i found a solution with the schematic from the nodemcu board. if i disconnect the RTS pin from the ftdi... i can flash the module (with a jumper between GPIO0 and GND) and i have a console in arduino.

the question is now: do i need the schematic from the nodemcu board? or is there a easier way to do this?