Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to flash the odrive #9

Closed
Tony-Yee opened this issue Nov 8, 2019 · 2 comments
Closed

failed to flash the odrive #9

Tony-Yee opened this issue Nov 8, 2019 · 2 comments

Comments

@Tony-Yee
Copy link

Tony-Yee commented Nov 8, 2019

something wrong during flashing the odrive, and the code is here.
how can I fix it.

`Erasing... done
Flashing... (sector 3/6)

RuntimeError Traceback (most recent call last)
D:\anaconda\Scripts\odrivetool in ()
140 print_version()
141 import odrive.dfu
--> 142 odrive.dfu.launch_dfu(args, logger, app_shutdown_token)
143
144 elif args.command == 'liveplotter':

D:\anaconda\lib\site-packages\odrive\dfu.py in launch_dfu(args, logger, cancellation_token)
452 firmware = FirmwareFromFile(args.file) if args.file else None
453
--> 454 update_device(device, firmware, logger, cancellation_token)
455
456

D:\anaconda\lib\site-packages\odrive\dfu.py in update_device(device, firmware, logger, cancellation_token)
380 for i, (sector, data) in enumerate(touched_sectors):
381 print("Flashing... (sector {}/{}) \r".format(i, len(touched_sectors)), end='', flush=True)
--> 382 dfudev.write_sector(sector, data)
383 print('Flashing... done \r', end='', flush=True)
384 finally:

D:\anaconda\lib\site-packages\odrive\dfuse\DfuDevice.py in write_sector(self, sector, data)
185 status = self.wait_while_state(DfuState.DFU_DOWNLOAD_BUSY)
186 if status[1] != DfuState.DFU_DOWNLOAD_IDLE:
--> 187 raise RuntimeError("An error occured. Device Status: {!r}".format(status))
188
189 def read_sector(self, sector):

RuntimeError: An error occured. Device Status: (0, 2, 0, 0)`

@Tony-Yee
Copy link
Author

you should use another method to flash ur odrive

@Tony-Yee
Copy link
Author

fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant