pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

Lopy4 module firmware update #316

Open phusy012 opened 5 years ago

phusy012 commented 5 years ago

Hi, I recently bought the lopy4. I could update the firmware for Expansion board 3.0 and now I mounted the lopy4 on the expansion board and tried to update the module firmware using the firmware tool version pycom_firmware_update_1.15.1.

However, I am not able to since I am getting the message "Failed to connect to ESP32. Time out waiting for packet header" which is as shown in the attached screenshot. If anyone can advise or help me please,



Thank you!
![Capture](https://user-images.githubusercontent.com/52690767/60862679-1b3b7980-a240-11e9-9c31-be2edc35ecd4.JPG)
robert-hh commented 5 years ago

Are you shure that you have a valid com port for the device? You can check so in the device manager of windows. And there is some trouble with the expansion board 3.1. So please check if not by chance that is yours. Expansion board 3.1 has two push buttons (USR and Safe Boot), whereas 3.0 has only one. And there should be a revision number on the board. https://forum.pycom.io/topic/4911/expansion-board-3-1-issues

phusy012 commented 5 years ago

I realized that my laptop does not have the serial com port. Is there any method that I can use to update the firmware in lopy4?

robert-hh commented 5 years ago

A PC serial port would not be of much use either. Normally, USB/UART bridges are used, which will be emulated as a serial port on the PC. The expansion boards have such bridges built-in. Since that is broken, any similar USB->UART TTL adapter will work. You have to connect if with RX, TX and GND. For update, connect P2 to GND, push reset and start the updater.