• --flash_size 4MB-c1

    for all 4MB board features

    I tried

    esptool.py --port COM4 --baud 460800 write_flash --flash_freq 80m --flash_mode qio --flash_size 4MB-c1 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000  esp_init_data_default.bin 0x3FE000 blank.bin
    

    so

    esptool.py --port COM4 --baud 460800 write_flash --flash_size 4MB-c1 --flash_mode dio 0 .\espruino_1v99_esp8266_4mb_combined_409­6.bin
    
  • Hm, are you connected to your local network and are without internet access?

    If yes disconnect and try the WebIDE again.

  • I have the same problem and spent 2 days for solve it, but no results at all.
    I tred

    esptool.py --port COM3 --baud 115200 write_flash --flash_freq 80m --flash_size 4MB-c1 --flash_mode dio 0x0000 espruino_2v04_esp8266_4mb_combined_4096.­bin
    

    and

    esptool.py --port COM3 --baud 115200 write_flash --flash_freq 80m --flash_size 4MB --flash_mode dio 0x0000 espruino_2v04_esp8266_4mb_combined_4096.­bin
    

    but have the same results.
    Flashing Ok, Putty connection Ok, but WebIde connection is really bad. I have garbage text and error message :(


    Board: 2AL3B-ESP-F (RoHS ESP-12N)
    Baud rate was checked twice, I also tried to use ESP8266Flasher and FLASH_DOWNLOAD_TOOLS_V3.6.4 but the same result.

  • Tue 2019.08.13

    Hi @seometis, as you are seeing the 'Espruino' splash banner, it appears you are connected, as that text is clearly visible.

    What are the results of process.env and process.memory() after the splash banner? Please post those results.

    'Baud rate was checked twice'

    Just to confirm so we all are on the same page, what is the baud rate? WebIDE >> Settings >> Baud Rate

    What PC and OS ver are your running? Win10/Mac/Linux

    'I have garbage text and error message :('

    What is the error message?

    "boot_v1.6.bin" missing from flash command. Was the source in the correct location?

  • WebIde baudrate must be 115200

    change dio to qio

    As chip is 4016 use 4MB firmware

  • Hi @Robin and @MaBe! I use Windows 8.1 based laptop.
    I've downloaded firmware espruino_2v04_esp8266_4mb, runed command

    esptool.py --port COM3 erase_flash
    

    Success. Then I runed command:

    esptool.py --port COM3 --baud 115200 write_flash --verify --flash_freq 40m --flash_mode qio --flash_size 4MB-c1 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x37E000 blank.bin
    

    According esptool everything is fine and flashing success and verifying is also success. After reset the board, i connected via putty and runed commands:

    What does it means FLASH: 0? I can't use storage to put my own code? :(

    Now I've tried to connect using WebIde and see the same error:

    In settings => communication, Baud Rate is 115200.

  • Tue 2019.08.13

    I'm glad our suggestions assisted in finding a solution that worked.

    Thank you for posting the baud rate confirmation.

    'What does it means FLASH: 0?'

    I'll agree that is an area to review. I did the test on a WiFi:

      "VERSION": "2v04",
      "GIT_COMMIT": "3956264e",
      "BOARD": "ESPRUINOWIFI",
      "FLASH": 524288, "RAM": 131072,
    

    Maybe that setup script still needs an argument change? I'm not able to offer a solution as I'm not an ESP32 user. To others, the amount of free mem does appear suspicious. Is anyone able to post their output for comparison please.


    'Now I've tried to connect using WebIde and see the same error:'

    I believe you have a different situation and not the same error. How is it being determined that the error is the same? I see the board detail just isn't returned.

    I have occasionally run into that scenario. Have you attempted to just restart the WebIDE? I see the Com port is recognized.

    More detail might be obtained by reviewing the WebIDE error console.
    WebIDE >> Settings >> Console

  • Flash is ok.

    >process.env
    ={
      VERSION: "2v04.6",
      GIT_COMMIT: "c2087d40",
      BOARD: "ESP8266_4MB",
      FLASH: 0, RAM: 81920,
      SERIAL: "18fe34d1-8934",
      CONSOLE: "Serial1",
      MODULES: "Flash,Storage,hea" ... ",ESP8266,neopixel",
      EXPTR: 1073643644 }
    >
    >require("Flash").getFree()
    =[
      { addr: 2097152, length: 1048576 },
      { addr: 3145728, length: 262144 },
      { addr: 3407872, length: 262144 },
      { addr: 3670016, length: 262144 },
      { addr: 3932160, length: 241664 }
     ]
    > 
    

    Restarting the Web IDE and reconnecting the board should fix the serial connection.

  • Did you compile your own version, having Flash and Storage and in your build? Storage isn't included in the ESP8266 build, or at least it wasn't in the past.

  • Wed 2019.09.14

    Thank you for posting that test @maze1980, so it appears for the ESP8266 build that process.env does in fact return a '0' value.

    http://www.espruino.com/Reference#Flash
    ' representing contiguous areas of flash '

    It appears this is going to take a bit of study, as I don't see how these apply when they don't agree. (WiFi board here though)

    >require("Flash").getFree()
    =[
      { addr: 134234112, length: 49152 }
     ]
    
     
      "BOARD": "ESPRUINOWIFI",
      "FLASH": 524288, "RAM": 131072,
    
    
    524288 / 16 = 32,768
    524288 / 12 = 43,690
    

    Not intending to muddy this thread with another issue, just posting an observation for @seometis to test and observe.

  • AFAIK the FLASH in process.env shows the total amount of flash on the chip. Defined in boards/BOARD_NAME.py. If I'm right, that is kind of irrelevant from the end users's perspective.

    The ESP8266 has all kinds of funky flash parts, I think that's the reason there are multiple free flash regions. For STM32 and nRF parts, the free flash area is continuous.

  • I've found a good solution to my problem. Just flash ESP8266 to standard ROM and put it into the garbage box. And then I've taken ESP-32 board and have no problem. Now I can make my first Espruino project. :)

  • ...a bit unfair to this little, cute guy: Espruino on ESP8266 ESP-09 - 1 powerful cm2

    As engineers wisely respond: "It all depends..."

  • ...a bit unfair to this little, cute guy

    Absolutely. ESP8266 was a game changer. It's almost a pity that TLS is the norm nowadays - for that is its Achilles heel.

  • Did you try Flasher.js? It's been quite bomb proof for me

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

I can't get started. Flashing seems OK, Espruino Web IDE not connecting.

Posted by Avatar for Neptune443 @Neptune443

Actions