These are chat archives for esp8266/Arduino

9th
Nov 2016
Michael Miller
@Makuna
Nov 09 2016 02:21
I know Serial can be swapped to other pins; but can then Serial1 be swapped and used for debug output through the IDE Serial monitor?
I tried just Serial.swap() which works for moving to other pins; but I cant get Serial1 to show through the serial monitor.
Victor Tseng
@Palatis
Nov 09 2016 02:56
isn't the debug output always use serial0?
you can swap the pins, but it's still UART0
Michael Miller
@Makuna
Nov 09 2016 03:15
but the serial monitor is just connected to the pins; so it would seem that if the pins are swapped, then Serial1 should show up in the serial monitor.
Michael Miller
@Makuna
Nov 09 2016 03:21

I found this...

 * UART 0 possible options are (1, 3), (2, 3) or (15, 13)
     * UART 1 allows only TX on 2 if UART 0 is not (2, 3)

So, Serial1 can't be placed onto the original TX pin 1; so it can't be used for the Serial monitor with a dev board.

Me No Dev
@me-no-dev
Nov 09 2016 09:17
@martinayotte you need to handle the space above 4MB yourself in the sketch. The bootloader does not understand flash above 4MB
we are talking about ESP8266 right?
Martin Ayotte
@martinayotte
Nov 09 2016 14:04
@me-no-dev , Yes, ESP8266 ! So, do you mean the changes done in esp8266/Arduino#2351 are useless ?
Me No Dev
@me-no-dev
Nov 09 2016 16:09
@martinayotte yes pretty much
Subramanya Chakravarthy
@chakrihacker
Nov 09 2016 16:28
hi
can anyone help me
I want to use esp8266 as master and arduino mega as slave
?
?
Michael Miller
@Makuna
Nov 09 2016 18:31
@chakrihacker what do you mean by master and slave? In what context are you using these terms. WiFi? Serial?
Martin Ayotte
@martinayotte
Nov 09 2016 22:53
@me-no-dev , I think there is a workaround for getting SPIFFS using > 4MB, take a look at this http://www.packom.org/esp8266/16mb/flash/eeprom/2016/10/14/esp8266-16mbyte-flash_handling.html and http://bbs.espressif.com/viewtopic.php?f=7&t=2865. Maybe we can hack the Esp.flashWrite() and Esp.flashRead() to use this method, and then SPIFFS should work. Right ?
Martin Ayotte
@martinayotte
Nov 09 2016 23:36
I've just done a quick try, without changing the core files, directly in my sketch, I've done the hack around my SPIFFS Format function, and it worked where it failed before. I will have to generalize the thing inside the core files to test the whole thing.