flash.sh hangs
-
flash.sh hangs, never returns prompt - Ubuntu
~/spresense/sdk$ ./tools/flash.sh -l ~/spresense/firmware/spresense -c /dev/ttyUSB0
Install files ...
'''''''Install /home/archangel/spresense/firmware/spresense/dnnrt-mp.espk
-
Additional info...
unplugged USB, got the following info...
Traceback (most recent call last):
File "serial/serialposix.py", line 495, in read
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "flash_writer.py", line 550, in <module>
File "flash_writer.py", line 519, in main
File "flash_writer.py", line 423, in install_files
File "flash_writer.py", line 382, in wait
File "flash_writer.py", line 373, in recv
File "flash_writer.py", line 286, in readline
File "serial/serialposix.py", line 505, in read
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
[3633] Failed to execute script flash_writer
-
FYI, Fix...
unplug USB, then plug in again resolve flash.sh hang.
Provided info below to help others see expected response.:~/spresense/sdk$ ./tools/flash.sh -l ~/spresense/firmware/spresense -c /dev/ttyUSB0
Install files ...
install -b 115200
Install ~/spresense/firmware/spresense/dnnrt-mp.espk
|0%-----------------------------50%------------------------------100%|
######################################################################88352 bytes loaded.
Package validation is OK.
Saving package to "dnnrt-mp"
updater# install -b 115200
Install /home/archangel/spresense/firmware/spresense/AESM.espk
|0%-----------------------------50%------------------------------100%|
######################################################################28944 bytes loaded.
Package validation is OK.
Saving package to "AESM"
updater# install -b 115200
Install /home/archangel/spresense/firmware/spresense/gnssfw.espk
|0%-----------------------------50%------------------------------100%|
######################################################################450768 bytes loaded.
Package validation is OK.
Saving package to "gnssfw"
updater# install -b 115200
Install /home/archangel/spresense/firmware/spresense/loader.espk
|0%-----------------------------50%------------------------------100%|
######################################################################118832 bytes loaded.
Package validation is OK.
Saving package to "loader"
updater# sync
updater# Restarting the board ...
reboot
:~/spresense/sdk$
-
This post is deleted!