Avatar for tve

tve

Member since Sep 2015 • Last active Mar 2017
  • 40 conversations
  • 463 comments

Most recent activity

    • 197 comments
    • 29,065 views
  • in ESP8266
    Avatar for tve

    You can use the main UART to attach a peripheral, but it's somewhat tricky. You will get stuff printed on it at boot, so your periph better be able to ignore that. My onInit() function when using a nextion display attached to uart0 contains:

      // change logging so we don't clobber the nextion display on uart0
      esp8266.setLog(3); // log to memory and 2:uart0 3:uart1
      console.log("Bye bye...");
      Serial2.setConsole(false)
    

    The way I use it is to upload the code using telnet, so I see the "Bye bye..." printed via telnet when I run onInit() manually. By setting Serial2 as console the characters get dropped. By not forcing the console to stick to Serial2 I can telnet into the espruino at any time and have the console back. This has worked quite well for me.

  • in ESP8266
    Avatar for tve

    Make sure you turn the debug output off. esp8266.setLog(0) or esp8266.logDebug(false)
    I use an MCP23008 just fine, but not on gpio0 or gpio2...

  • in ESP8266
    Avatar for tve

    dump ends up writing to the UART non-stop at whatever rate the UART cranks stuff out until the WDT hits and then the esp resets. If you can increase the baud rate you may get more.
    Unfortunately there is no easy fix.

  • in ESP8266
    Avatar for tve

    Mhh, I think some guy on the internet wrote a free book on the esp8266, I think he goes by 'nkolban', you should take a look at his book ;-)
    The esp-01 modules have 512KB flash. The flash layout is described in https://github.com/espruino/EspruinoDocs­/blob/master/boards/EspruinoESP8266.md#f­lash-map-and-access as far as I can tell, people, especially beginners are still using these routinely.
    On larger modules we could use 1MB. On modules 2MB and up there's a layout that supports OTA with 1MB partitions. This is all described in Espressif's "user guide" or "OTA guide". But it's not just a matter of flipping a switch, there are a whole bunch of places that need changes, so to use that someone would really have to roll up their sleeves and make all the changes and get them reviewed.

  • in ESP8266
    Avatar for tve

    Good question, how does your output differ from the travis build? iram1_0_seg I believe is the 32KB of static instruction ram. They actually freed up some space there with SDK2 so I wonder what's going wrong for you. Nothing has changed in that area in Espruino in a while.

  • in ESP8266
    Avatar for tve

    Yup, looks like there is a bug when the save size is too big. You are correct about the 3x 4KB pages.

  • in ESP8266
    Avatar for tve

    The layout difference between 512KB and greater flash chips is only one 4KB sector, so just ditching 512KB support doesn't instantaneously fix the issue. Someone still has to go through and work out an alternate flash layout and then make all the code and documentation changes. I still see new folks start with esp-01 modules, FWIW.

  • in ESP8266
    Avatar for tve

    I'm glad you got it sorted out :-)

  • in ESP8266
    Avatar for tve

    No, it had to drop because it never fit. It was in the previous build because someone just changed the max size in the makefile without considering whether there actually is space. So code overlapped the eeprom flash area and other stuff.

Actions