So like a moron I tried to upgrade the board (v3.6) firmware as I saw there was a new release before reading the documentation and upgrading the odrivetool first. Now the ODrive won’t connect to the python terminal. When upgrading the firmware I got this error:
ODrive control utility v0.5.1.post0
Waiting for ODrive…
Found ODrive 206539964D4D (v3.6-24V) with firmware v0.5.1-dev
Checking online for newest firmware… found v0.5.2
Downloading firmware v0.5.2…
Saving configuration to C:\Users\CONNOR~1\AppData\Local\Temp\odrive-config-206539964D4D.json…
Configuration saved.
Putting device 206539964D4D into DFU mode…
Erasing… done
Flashing… (sector 0/7)
RuntimeError Traceback (most recent call last)
~\Anaconda3\Scripts\odrivetool in
141 print_version()
142 import odrive.dfu
→ 143 odrive.dfu.launch_dfu(args, logger, app_shutdown_token)
144
145 elif args.command == ‘liveplotter’:
~\Anaconda3\lib\site-packages\odrive\dfu.py in launch_dfu(args, logger, cancellation_token)
463 firmware = FirmwareFromFile(args.file) if args.file else None
464
→ 465 update_device(device, firmware, logger, cancellation_token)
466
467
~\Anaconda3\lib\site-packages\odrive\dfu.py in update_device(device, firmware, logger, cancellation_token)
391 for i, (sector, data) in enumerate(touched_sectors):
392 print(“Flashing… (sector {}/{}) \r”.format(i, len(touched_sectors)), end=’’, flush=True)
→ 393 dfudev.write_sector(sector, data)
394 print(‘Flashing… done \r’, end=’’, flush=True)
395 finally:
~\Anaconda3\lib\site-packages\odrive\dfuse\DfuDevice.py in write_sector(self, sector, data)
199 status = self.wait_while_state(DfuState.DFU_DOWNLOAD_BUSY)
200 if status[1] != DfuState.DFU_DOWNLOAD_IDLE:
→ 201 raise RuntimeError(“An error occured. Device Status: {!r}”.format(status))
202
203 def read_sector(self, sector):
RuntimeError: An error occured. Device Status: (0, 2, 0, 0)
What do I need to do to get it back working?