pycom / pycom-micropython-sigfox

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

Gpy crashing on firmware update #555

Open ljmerza opened 3 years ago

ljmerza commented 3 years ago

Please include the following information when submitting a bug report:

invoke_abort
/home/peter/docs/pycom-esp-idf/components/esp32/panic.c:156
abort
/home/peter/docs/pycom-esp-idf/components/esp32/panic.c:171
multi_heap_assert
/home/peter/docs/pycom-esp-idf/components/heap/multi_heap_platform.h:54
heap_caps_free
/home/peter/docs/pycom-esp-idf/components/heap/heap_caps.c:268
_free_r
/home/peter/docs/pycom-esp-idf/components/newlib/syscalls.c:42
??
??:0
lfs_free
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/littlefs/lfs_util.h:215
littlefs_close_common_helper
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/littlefs/vfs_littlefs.c:326
file_obj_ioctl
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/littlefs/vfs_littlefs_file.c:105
mp_stream_close
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/stream.c:422
fun_builtin_1_call
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/objfun.c:70
mp_call_function_n_kw
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/runtime.c:624
mp_call_method_n_kw
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/runtime.c:640
mp_execute_bytecode
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/vm.c:1002
fun_bc_call
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/objfun.c:287
mp_call_function_n_kw
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/runtime.c:624
mp_execute_bytecode
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/vm.c:919
fun_bc_call
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/objfun.c:287
mp_call_function_n_kw
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/runtime.c:624
thread_entry
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/../py/modthread.c:187
freertos_entry
/var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp32/mpthreadport.c:140

not sure what this even means?

gijsio commented 3 years ago

It seems there is a problem with the filesystem while you're trying to upload the micropython project (or are you specifically trying to do a firmware update?). Could you perhaps try os.fsformat('/flash') before trying again? Be aware that will clear the filesystem.