google-coral / coralmicro

Source code for Coral Dev Board Micro
Apache License 2.0
106 stars 44 forks source link

Flashtool troubleshooting - Ubuntu 24.04 LTS #118

Open AugustoGuerradeLima opened 4 months ago

AugustoGuerradeLima commented 4 months ago

Description

When i run lsusb

Google Inc. Coral Dev Board Micro

I already tried everything on the flash tool troubleshooting section as start the serial mode. When i run python3 flashtool.py -e detect_faces, the error appears

Click to expand! ### Issue Type Build/Install ### Operating System Ubuntu ### Coral Device Dev Board Micro ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output ```shell Finding all necessary files Creating Filesystem Section: 0x0 iMX bootable image generated successfully Boot Section 0x00000000: FILL | adr=0x00010000 | len=0x00000004 | ptn=0xc2000105 FILL | adr=0x00010004 | len=0x00000004 | ptn=0x00010020 FILL | adr=0x00010008 | len=0x00000004 | ptn=0x00040004 FILL | adr=0x0001000c | len=0x00000004 | ptn=0x00080004 FILL | adr=0x00010020 | len=0x00000004 | ptn=0xc0010021 ENA | adr=0x00010000 | cnt=0x00000004 | flg=0x0110 ERAS | adr=0x00000004 | cnt=0x00000004 | flg=0x0110 ERAS | adr=0x00000008 | cnt=0x00000004 | flg=0x0110 ERAS | adr=0x0000000c | cnt=0x00000040 | flg=0x0110 LOAD | adr=0x00000004 | len=0x00017854 | crc=0x511a1083 | flg=0x0110 LOAD | adr=0x00000008 | len=0x00017854 | crc=0x85117454 | flg=0x0110 STATE_CHECK_FOR_ANY STATE_CHECK_FOR_ELFLOADER STATE_RESET_ELFLOADER Traceback (most recent call last): File "/home/augusto/.coral/coralmicro/scripts/flashtool.py", line 1193, in main() File "/home/augusto/.coral/coralmicro/scripts/flashtool.py", line 1182, in main RunFlashtool(StateCheckForAny, sbfile_path=sbfile_path, File "/home/augusto/.coral/coralmicro/scripts/flashtool.py", line 821, in RunFlashtool (prev_state, state) = (state, state(**state_kwargs)) ^^^^^^^^^^^^^^^^^^^^^ File "/home/augusto/.coral/coralmicro/scripts/flashtool.py", line 610, in StateResetElfloader with OpenHidDevice(ELFLOADER_VID, ELFLOADER_PID, serial_number) as h: File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/home/augusto/.coral/coralmicro/scripts/flashtool.py", line 589, in OpenHidDevice h = hid.device() ^^^^^^^^^^ AttributeError: module 'hid' has no attribute 'device'. Did you mean: 'Device'? ```