These are chat archives for esp8266/Arduino

12th
May 2016
Stavros Korokithakis
@skorokithakis
May 12 2016 01:14
does anyone have a wifimulti example with mqtt?
Michael Miller
@Makuna
May 12 2016 01:16
@M0ebiu5 Can you reproduce it with a simple example? If so, enter an issue for the problem, and mention me "@makuna" somewhere in the text and I will take a look.
Clemens Kirchgatterer
@everslick
May 12 2016 10:57
section .text' will not fit in regioniram1_0_seg' when compiling with gdbstub support. without my bin file is: Memory usage: Ram: 39828 bytes, Flash: 329257 bytes
i guess i have reached a limit
liangzelang
@liangzelang
May 12 2016 11:07
yeah´╝î I meet the same problem when I add envs_dir=.XXX to platformio.ini in this project , this problem will disappear when I modify the size of iram1_0_seg in the ldscripts .
Clemens Kirchgatterer
@everslick
May 12 2016 13:02
ICACHE_FLASH_ATTR is the default, isn't it?
Clemens Kirchgatterer
@everslick
May 12 2016 13:43
hmpf, even if i reduce my binary by 3KB (text) gdbstub still does not fit in. is gdbstub really that big?
M0ebiu5
@M0ebiu5
May 12 2016 22:38
@Makuna Here is the sample:
const unsigned int pwmTable[] PROGMEM  = {0,0};
unsigned int i = 0;

void setup() {
 Serial.begin(115200);
 Serial.println("Startup...");
}
void loop() {
  delay(5000);
  unsigned int itmp = pgm_read_word_near(pwmTable + i++);
  Serial.println(itmp);
}
Gus Grubba
@dogmaphobic
May 12 2016 23:46
pwmTable alocates space for 2 integers. Your loop goes on beyond it and crashes when i == 2.