Did I brick my ESP8266 ESP01 on Pico?

Posted on
  • I realized that I was still using 0018000902-AI03 firmware, so I decided to update it. I made a mistake of doing it on Windows because esptool.py kept timing out. Then I read about --no-stub option and added that to my command. Reading/writing started to work, but got slower and slower and timed out before reaching even 20% of flashing. I finally realized that I could have flashed it through Raspberry Pi 3+, but even there it doesn't work without --no-stub and flashing fails anyways. Whats my options?

    pi@raspberrypi:~ $ python -m esptool -p /dev/ttyACM0 -b 115200 --no-stub read_mac
    esptool.py v2.8
    Serial port /dev/ttyACM0
    Connecting...
    Detecting chip type... ESP8266
    Chip is ESP8266EX
    Features: WiFi
    Crystal is 26MHz
    MAC: 18:fe:34:9d:53:13
    Enabling default SPI flash mode...
    MAC: 18:fe:34:9d:53:13
    Hard resetting via RTS pin...
    
    pi@raspberrypi:~ $ python -m esptool -p /dev/ttyACM0 -b 115200 --no-stub write_flash 0 ESP8266_AT25-SDK112-512k.bin
    esptool.py v2.8
    Serial port /dev/ttyACM0
    Connecting...
    Detecting chip type... ESP8266
    Chip is ESP8266EX
    Features: WiFi
    Crystal is 26MHz
    MAC: 18:fe:34:9d:53:13
    Enabling default SPI flash mode...
    Configuring flash size...
    Auto-detected Flash size: 512KB
    Erasing flash...
    Took 1.05s to erase flash block
    Writing at 0x00000000... (0 %)
    A fatal error occurred: Invalid head of packet (0x13)
    
  • Hi - sorry for the delay, I was away last week.

    How did you update the firmware? Using the instructions for 'Use Espruino' at http://www.espruino.com/ESP8266#use-a-se­parate-usb-ttl-adaptor ? So actually doing the connection via the Pico?

    First I'd make sure your Pico firmware is up to date, then did you make the changes to ESP_RAM_BLOCK/ESP_FLASH_BLOCK ?

  • Yes, I used the http://www.espruino.com/ESP8266#use-espr­uino instructions on Pico, I have shim v1 and espruino_2v06_pico_1r3.bin on it. I can still get it into bootloader mode manually, but after trying to flash ESP8266_AT25-SDK112-512k.bin with esptool.py, it broke and now I get the logs above.
    My esptool.py doesn't have ESP_FLASH_BLOCK, it only has ESP_RAM_BLOCK and FLASH_WRITE_SIZE.

    I ordered 10 days ago new shims for Pico too, but I guess you haven't got time to process them yet, I only got the automated order email.

  • Do you have a USB TTL converter? I'd maybe try using that to flash the ESP8266. You'd have to solder wires onto the ESP8266 pins but it's worth a try.

    When the Pico is connected to power, A2/A3 should be open circuit so if you've got them connected to the USB TTL converter you should be fine.

  • I think I don't have, but I have this USB programmer https://www.sparkfun.com/products/12924

    and I have Arduino Uno, for which I found this guide https://dzone.com/articles/programming-t­he-esp8266-with-the-arduino-ide-in-3

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

Did I brick my ESP8266 ESP01 on Pico?

Posted by Avatar for tarmo888 @tarmo888

Actions