google-coral / coralmicro

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

Bricked coral micro #99

Open Strat00s opened 7 months ago

Strat00s commented 7 months ago

Description

Well, it seems I managed to fail a flash and now I cannot flash the board anymore. When I press the middle button and reset (or when I plug the cable in), it shows up as NXP Semiconductors SE Blank RT Family. But when I plug it in normally, nothing. Absolutely nothing happens/shows up. And when I try to flash it (when it shows up as the NXP...), the flashtool.py resets it into some other mode and it shows up as Freescale Semiconductor, Inc. USB COMPOSITE DEVICE.

Do you guys have any advice on how to unbrick it? Thanks.

Click to expand! ### Issue Type Support, Others ### Operating System Windows 10, Linux ### Coral Device Dev Board Micro ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output ```shell When I try to flash it while as NXP...: ./flashtool.py --app my_project Finding all necessary files No Dev Board Micro devices detected! When I try to flash it afterwards (when as Freescale...): ./flashtool.py --app my_project Traceback (most recent call last): File "/home/stratos/coralmicro/scripts/./flashtool.py", line 1194, in main() File "/home/stratos/coralmicro/scripts/./flashtool.py", line 1048, in main RunFlashtool(StateCheckForFlashloader, print_states=False, File "/home/stratos/coralmicro/scripts/./flashtool.py", line 822, in RunFlashtool (prev_state, state) = (state, state(**state_kwargs)) File "/home/stratos/coralmicro/scripts/./flashtool.py", line 563, in StateLoadElfloader subprocess.check_call([blhost_path, '-u', flashloader_vidpid(), 'flash-image', File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/stratos/coralmicro/third_party/nxp/blhost/bin/linux/amd64/blhost', '-u', '0x15a2,0x73', 'flash-image', '/home/stratos/coralmicro/build/apps/elf_loader/image.srec']' returned non-zero exit status 20. ```

EDIT: I have removed some arguments from the subprocess.call to see the error output and this is what I get:


Inject command 'flash-image'
Wrote 106420 bytes to address 0x202c0800
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Successful generic response to command 'write-memory'
Response status = 0 (0x0) Success.
Inject command 'call'
sendCommandGetResponse.readPacket error 5.
Response status = 10004 (0x2714) No response packet from target device.
Finding all necessary files
No Dev Board Micro devices detected!```