Last night I updated my brewpi software using the updater.py as part of that I flashed it with the latest firmware.
My spark seems non-functional after the flash. I have put the spark in DFU mode and run flashDfu.py. This seems to run successfully until the end where it cannot get a version numbrer.
Any tips or pointers on how to fix this?
sudo python /home/brewpi/utils/flashDfu.py
Using dfu-util binary at /home/brewpi/utils/downloads/dfu-util
WARNING: It is not possible to update the bootloader with DFU. If the new release requires an updated bootloader, the photon will automatically download it from the Particle cloud.
This does require a WiFi connection on the Photon.
If the photon does not have WiFi credentials, it will start in listening mode (blinking blue).
Please use the Particle phone app to set up WiFi. Your photon will hang in safe mode until the bootloader is updated from the cloud.
If the photon has invalid WiFi credentials, it will hang blinking green. Hold the setup button for 5 seconds to trigger listening mode.
Detecting DFU devices
Found 1 devices: ['2b04:d006']
Device identified as Particle Photon
Downloading latest firmware...
Latest stable version on GitHub for photon: 0.5.5
downloading https://github.com/BrewPi/firmware/releases/download/0.5.5/brewpi-photon-0.5.5.bin
Firmware downloaded to /home/brewpi/utils/downloads/0.5.5/brewpi-photon-0.5.5.bin
Updated system firmware for the photon found in release 0.5.5
downloading https://github.com/BrewPi/firmware/releases/download/0.5.5/system-part1-0.8.0-rc.3-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.5.5/system-part2-0.8.0-rc.3-photon.bin
Downloaded new system firmware to:
/home/brewpi/utils/downloads/0.5.5/system-part1-0.8.0-rc.3-photon.bin and
/home/brewpi/utils/downloads/0.5.5/system-part2-0.8.0-rc.3-photon.bin
Updating system firmware for the photon, part 1: /home/brewpi/utils/downloads/0.5.5/system-part1-0.8.0-rc.3-photon.bin
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08020000, size = 239300
...........................................................
File downloaded successfully
Updating system firmware for the photon, part 2: /home/brewpi/utils/downloads/0.5.5/system-part2-0.8.0-rc.3-photon.bin
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08060000, size = 251580
..............................................................
File downloaded successfully
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.5.5/brewpi-photon-0.5.5.bin to photon
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 93860
.......................
File downloaded successfully
Programming done
Now resetting EEPROM to defaults
Press Enter to continue...
Opening serial port to reset factory defaults
Jun 18 2018 23:00:21 Opening serial port
Jun 18 2018 23:00:21 Background thread for serial started
Jun 18 2018 23:00:21 Serial (re)connected for Photon [210043000847343337373738] at port: ttyACM0
Warning: Cannot receive version number from controller. It will be reset to defaults.
Resetting EEPROM to default settings
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 763, in run
File "/home/brewpi/utils/../backgroundserial.py", line 118, in __listen_thread
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 467, in in_waiting
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'ioctl'