Avatar for user139492

user139492

Member since Jan 2022 • Last active Jan 2022
  • 1 conversations
  • 3 comments

Most recent activity

    • 5 comments
    • 1,310 views
  • in ESP8266
    Avatar for user139492

    Ok, explicitly changing the Web IDE baud rate to 115200 got the web ide working and I'm currently poking around how to access hardware, etc...

    Any ideas why I would be running into the other issues with CLI and local IDE?

    Both espruino -p /dev/tty.usbserial-0001 -b 115200 --ide and espruino -p /dev/cu.usbserial-0001 -b 115200 --ide still fail with Abort Trap: 6, even if I leave off the --ide option.

    Uploading a file fails as well in the same way.

  • in ESP8266
    Avatar for user139492

    So using screen /dev/tty.usbserial-0001 115200 the terminal is unresponsive to any keystrokes.

    Using espruino -p /dev/tty.usbserial-0001 --ide I get

    Espruino Command-line Tool 0.1.40
    -----------------------------------
    
    Connecting to '/dev/tty.usbserial-0001'
    Abort trap: 6
    

    Using the web ide I get the attached images.

    Where do I go next?

  • in ESP8266
    Avatar for user139492

    I'm getting a bunch of gibberish when connecting that seems to be blocking any actual usage. Wondering where I went wrong.

    I'm using a HiLetgo ESP8266 ESP-12E with my Macbook Pro M1. I am able to successfully run example sketches via Arduino IDE so I don't think it's a hardware issue.

    Here's the flash command and output:

    [~/Projects/rr-buttons/esp8266-firmware]­ $ esptool.py \
    >   --port /dev/tty.usbserial-0001            \
    >   write_flash                               \
    >   --erase-all                               \
    >   --flash_freq 80m                          \
    >   --flash_size 4MB-c1                       \
    >   --flash_mode qio                          \
    >   0x00000                                   \
    >   espruino_2v11_esp8266_4mb_combined_4096.­bin
    esptool.py v3.2
    Serial port /dev/tty.usbserial-0001
    Connecting....
    Detecting chip type... Unsupported detection protocol, switching and trying again...
    Connecting....
    Detecting chip type... ESP8266
    Chip is ESP8266EX
    Features: WiFi
    Crystal is 26MHz
    MAC: 58:bf:25:d7:3c:99
    Uploading stub...
    Running stub...
    Stub running...
    Configuring flash size...
    Erasing flash (this may take a while)...
    Chip erase completed successfully in 16.0s
    Flash params set to 0x006f
    Compressed 4194304 bytes to 369756...
    Wrote 4194304 bytes (369756 compressed) at 0x00000000 in 52.3 seconds (effective 641.7 kbit/s)...
    Hash of data verified.
    
    Leaving...
    Hard resetting via RTS pin...
    

    But when I go to connect via screen I get gibberish before the Espruino prompt and the terminal becomes unresponsive to any keyboard input.

    �d�b�{l{l$ܞ|�$�|�$�c|���2�r�c�B��oN�$on�­��#p��${lr$p�o��lco�|��#��on�$��$`�2n$`n­{�ےoےd`p�N�s�ܜ��#N�|�ߌ�b��no�l �od`N{�ےo�{lp�N�r�ܜ����co�|����b��oo�$`�­nNl or���N���o쒜p��n|�l$$l`B�����2r��l�o��N�l­`�N�$���
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v11 (c) 2021 G.Williams
    
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:1024/1024, manuf 0x20 chip 0x4016
    
    >
    

    The gibberish varies but I haven't figured out any way to decode it other than thinking "that looks a lot like control characters...":

    rll��|�$�|��l�#|���p�r�b�#�p~�o�$oN���bp­��l{l{lp�o��lbn�|��#�|~�o�d��l �no$`Ns���Nےl`p�o�{�ܜ��bn�|�߄�p��oN�l �nl ���n�r��n|�$ldl b��|r�l�n��n�d`��r�$�$�
    
    s$l����$�|�d�b|���2�{�#�B��no�$no���cp��­l{l{lp�o��$bn�|���B��no�$��l �nl`Ns���o��$`p�o�s�����bn�|䏞��c��on�l`�­oo$`or�����dp�o�r������$bN�|���b��oN�$`�­2Nol n{���n����o�|2s��o|�$$l$`#��|r�$�N��n�$`­��r�d���
    

    Any ideas what I screwed up?

Actions