• Hi guys,

    So I recently bought one of these very gorgeous and feature packed boards, based on their LoRa module (this one has no LoRa radio).

    http://www.heltec.cn/project/wifi_kit_32­/

    It incorporates: a LiPo battery charger, USB interface, what appears to be a custom made OLED screen (128x64), which looks very cool (brighter and sharper than some I've used), its extremely compact for an ESP32 board...and finally...its WHITE(!).

    So long story short, I flashed it couldn't communicate with it. I would type something and get garbage back.

    rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_d­rv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2364
    load:0x40078000,len:0
    load:0x40078000,len:10880
    entry 0x40078c4c
    #$|óBnàänÎoãäûooNrNNoolnîNoâ|l`rlïoÿäp`ä­²ìd ðäìì²äòûì²$`ðìÛòlb"äB`ðò²òÛì2òûòó2ò ód|c²ä|óocp~nd$¾ãäbpbpclä|ìäpoìN|sdrl{"ooNln|älãoänò#rbìdûì¾BrNl­o|äòN|l~ãoNüpãäoãìoänÜänàpóoàslâNÜNNà2oNn|ìl `bìccãcÛNnocp~ncNnà²lrdü$~ócocBnbcNldBnc­$$ll#lll# 
    

    I suspected a baud rate problem but none of the baud rates in the Web IDE worked. I eventually brought up ESPlorer which is a JAR file (can be found online), and had success connecting at 74880.

    After I had to go through the Espruino Web IDE code to figure out to change this line:

      function init() {
        Espruino.Core.Config.add("BAUD_RATE", {
          section : "Communications",
          name : "Baud Rate",
          description : "When connecting over serial, this is the baud rate that is used. 9600 is the default for Espruino",
          type : {9600:9600,14400:14400,19200:19200,28800­:28800,38400:38400,57600:57600,74880:748­80,115200:115200},
          defaultValue : 9600,
        });
    

    ...and it works now.

    Connected to port /dev/tty.SLAB_USBtoUART
    >*«PªV¡¡ET¡Q«UU«T¢Ô-«QR©«T«ªRUJªªV¥Z¹j¡ª­TÕJ¨R®J¢®Ô5TªT©µUµÅ-QBUª«jªªEJªRZ¹QÊWÕQ(­©uT«Z¹QJ-]ªZ,QRªRZ¹QÚ¬RZ¹QQT®UZª¦B)µ©…ªÕ­%µ(Õªª(¥©UVK%µ(Õªª(¥J©jZU%µ(ÕTQeQRªÕTTªT­,EÔYQ©UV+QYEj´«P±EÔYJ¥QüWARNING: has simple connection not implemented yet
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     1v97.114 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >
    =undefined
    >
    =undefined
    > 
    

    I've flashed quite a few ESP32s (dozens?), and this is the first time I've come across this situation.

    I am curious how Espruino sets its console communications baud rate, and as we can see above when I had the wrong baud rate, the module would boot at 115200 baud, showing me power on information, then I assume switch to 74880 and produce garbage.

    Additionally this brings up the question of if we should add "custom" baud rates to the Web IDE console. I know the ESP32 can communicate at up to 921600.

    NOTE: This issue occurred through 1v97 to 1v99. I'm flashing to 1v97 here because of the neopixel problem in subsequent releases.

    -hfc

About