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

[firmware] LoPy firmware flashing fails #95

Closed quentin-ol closed 5 years ago

quentin-ol commented 6 years ago

I've received a new LoPy yesterday and attempted a firmware upgrade via the PyCom Firmware Upgrade tool.

According to the application, the firmware upgraded happened smoothly but the version that was displayed on the REPL didn't match that of the firmware that was advertised by the tool (1.10.0.b1). For the record, here is what it says:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff9028,len:8
load:0x3fff9030,len:932
load:0x4009fa00,len:0
ho 12 tail 0 room 4
load:0x4009fa00,len:13232
entry 0x400a04e8
MicroPython v1.8.6-820-g56004e13 on 2017-11-08; LoPy with ESP32
Type "help()" for more information.

Then, I've attempted using the method described here to build the firmware from source and to flash it. Building was fine but flashing ended up with a bricked LopY (red LED).

I managed to get the firmware working using the method described in issue #81 (i.e. first erase the flash then proceed as explain in here). In case anyone needs it, here is the procedure:

python esptool.py --chip esp32 --port <LoPY PORT> --baud 115200 erase_flash
danicampora commented 6 years ago

In order to get the actual version, please do:

import os

os.uname()

... and check the release attribute.

nevercast commented 6 years ago

Which build are you using? I'm building from eca3b714 and it seems to be bricking my WiPy 2 with the same RTC issue.

I'm not sure if anything has changed in the last 5 months as far as build process goes, but my build script worked 5 months ago. Hopefully we are experiencing the same issue and can narrow it down.

nevercast commented 6 years ago

@quentin-ol Have you seen this issue recently? The firmware has changed a lot and the updater has had a few changes too.

danspndl commented 5 years ago

Hi 👋 I'll close this issue because it has not had any recent activity. Thank you for your contributions!