ESP8266 stuck at 74880 baud

Posted on
  • Hey all,
    This is my first go with Espruino. I have flashed all my chips with the set of 4 bios files found in the espruino_1v91_esp8266 folder. I am able to connect the IDE to my chips, but I am unable to use the terminal. There is no setting in the IDE for a 74880 baud rate. Is there any way to set a custom baud rate on the IDE or is there a way to permanently change the baud rate on the chip?

    Thanks

  • set baud rate to 115200 and try again

  • Thank you for the reply. When I flash the chip, it is set to 112500. Once flashed, the only console speed that works (in explorer) is 74880. I have tried all the baud settings in Espruino, but none of them are right. Unfortunately the IDE does not have a 74880 setting.

  • Are using a modified build ?

    Standard is 115200, check ESP8266_BOARD.py

  • I am using everything straight from the espruino distribution.
    (see biosFiles.png)

    Chip is a NodeMCU ESP8266-12E
    (see nodeMCU.jpg)

    I have been flashing using the following command:

    ./esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash \
    --flash_freq 80m --flash_mode qio --flash_size 32m \
    0x0000 boot_v1.6.bin 0x1000 espruino_esp8266_user1.bin \
    0x3FC000 esp_init_data_default.bin 0x37E000 blank.bin
    

    The only terminals who have been outputting readable text is the Esplorer and the Arduino IDE. As mentioned before, the only speed that works is 74880, not the 115200. After resetting the chip the following test shows in the terminal:

    flash read err, ets_unpack_flash_code
    ets_main.c 
     ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    
    load 0x40100000, len 2408, room 16 
    tail 8
    chksum 0xef
    load 0x33333333, len 858993459, room 0 
    flash read err, ets_unpack_flash_code
    ets_main.c
    

    Does this help?


    2 Attachments

    • biosFiles.png
    • nodeMCU.jpg
  • start with a erase_flash

    ./esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash
    

    than flash again

    connect to WebIDE with 115200 and share 'Console Log'

  • I was able to erase_flash at 115200

    After connecting to the terminal and resetting the chip I see:

    @115200 in WebIDE

    rll|là|lìb|ìrbbònnlnnâìbpìlrlrlrònàbânbpü 
    

    @74880 in Arduino Console

     ets Jan  8 2013,rst cause:2, boot mode:(3,6)
    
    ets_main.c 
    
  • ok - now press the reset button

    and share the CONSOL LOG messages

  • The console in the IDE is still unreadable, but in the last 100 lines in the settings, I found something that is a little more meaningful. Thanks for all your help:

    >>> Connecting...
    Set Slow Write = true
    [object Object]
    Connected [object Object]
    Found a prompt... great!
    >>> Sending...
    ---> "\u0010console.log(\"<\",\"<<\",JSON.str­ingify(process.env),\">>\",\">\")\n"
    >>> Sent
    WARNING: No result found - just got ""
    Device found (connectionId=9)
    [success] Connected to port /dev/cu.SLAB_USBtoUART
    >>> Connected to port /dev/cu.SLAB_USBtoUART
    Disconnect callback...
    WARNING: [notify_warn] Disconnected
    >>> Disconnected
    >>> Connecting...
    Set Slow Write = true
    Unable to open device (connectionInfo=undefined)
    ERROR: Unable to open device (connectionInfo=undefined)
    ERROR: [notify_error] Connection Failed.
    >>> Connection Failed.
    >>> Connecting...
    Set Slow Write = true
    [object Object]
    Connected [object Object]
    Found a prompt... great!
    >>> Sending...
    ---> "\u0010console.log(\"<\",\"<<\",JSON.str­ingify(process.env),\">>\",\">\")\n"
    >>> Sent
    WARNING: No result found - just got ""
    Device found (connectionId=10)
    [success] Connected to port /dev/cu.SLAB_USBtoUART
    >>> Connected to port /dev/cu.SLAB_USBtoUART
    
  • ets Jan 8 2013,rst cause:2, boot mode:(3,6)

    reset causes:
        0: 
        1: normal boot
        2: reset pin          <----
        3: software reset
        4: watchdog reset
    

    Is your usb power stable ?

  • Yes,
    All those resets were me pressing the rest button.

  • Solved, up and running...

    There were a few issues with my original setup. First I updated to the latest esptool from 1.2 to 2.0 beta. The tool then notified me that 32m was deprecated in favor of 4MB. Lastly the mode I was using should have been dio and qio. The resulting command that worked after an erase was...

    ./esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash \--flash_freq 80m --flash_mode dio --flash_size 4MB \
    0x0000 boot_v1.6.bin 0x1000 espruino_esp8266_user1.bin \
    0x3FC000 esp_init_data_default.bin 0x37E000 blank.bin
    
  • Great, yes the flash part needs some update

    • erase flash before update to new version

    • esptool.py version 2.0

  • Just an update:

    I had this same issue. Then I studied the LUA upload tool (NodeMCU-PyFlasher-1.0.1), Then I tried all diff perms and combs until I got a working LUA firmware flashed sucessfully. Then I mimicked those params to esptool.py .... This is same as @Phando (but running with esptool.py 1.3).

    esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash \                                   
      --flash_freq 80m --flash_mode dio --flash_size 32m \
      0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin \
      0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

ESP8266 stuck at 74880 baud

Posted by Avatar for Phando @Phando

Actions