CH549G code flash failed
Closed this issue · 3 comments
nikitos1550 commented
Hello!
Trying update wch-link (ch549G) with some binary, got some issue.
./isp55e0 -d --code-flash WCHLINK_V2.10.bin
Dump - request
a1 12 00 00 00 4d 43 55 20 49 53 50 20 26 20 57
43 48 2e 43 4e
Dump - response
a1 9b 02 00 49 12
Found device CH549
Dump - request
a7 02 00 1f 00
Dump - response
a7 9b 1a 00 1f 00 00 00 00 00 20 00 00 00 00 d2
74 c8 00 02 04 00 f4 b4 b1 40 00 00 a5 f5
Bootloader version 2.4.0
Unique chip ID f4-b4-b1-40
Dump - request
a3 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
Dump - response
a3 9b 02 00 e1 00
isp55e0: The device refused the key
frank-zago commented
I got the key length wrong. I pushed a fixed.
nikitos1550 commented
Thanks, I will check tomorrow. Dont have 549G hardware nearby now.
nikitos1550 commented
It works with last commit! Thanks!
./isp55e0 -f WCHLINK_V2.10.bin
Found device CH549
Bootloader version 2.4.0
Unique chip ID b7-a0-b8-44-00-00-6f-e5
Code flashing successful
Firmware is good