Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Fail to verify chunk for CH32V208WB in Ubuntu Linux #2

Closed
tonyho opened this issue Mar 11, 2023 · 6 comments
Closed

Fail to verify chunk for CH32V208WB in Ubuntu Linux #2

tonyho opened this issue Mar 11, 2023 · 6 comments

Comments

@tonyho
Copy link

tonyho commented Mar 11, 2023

The tool can get the infor of device:

$sudo ./wch-isp info -v
BTVER v2.5 UID d0-40-88-26-3b-38-93-9f [0x1980] CH32V208WBU6

But failed to flash image:

$ sudo ./wch-isp -v flash ./WebServer.hex
BTVER v2.5 UID d0-40-88-26-3b-38-93-9f [0x1980] CH32V208WBU6
Fail to verify chunk @ 0 error: f5 00

@jmaselbas
Copy link
Owner

Which version of wch-isp are you using ? (but I don't think that matters)

I don't have an CH32V208WBU6 at hand to test this myself, do you have a link to a board featuring such MCU ?

Have you tried using others "isp" (such as https://github.com/ch32-rs/wchisp) ?

@jmaselbas
Copy link
Owner

jmaselbas commented Mar 11, 2023

I've ordered 3 eval boards using:

  • CH32V003
  • CH32V203
  • CH32V208

@tonyho
Copy link
Author

tonyho commented Mar 12, 2023

@jmaselbas Thanks for huge support and fast reply. I tried the wchisp, it has another problem to flash the CH32V208:
ch32-rs/wchisp#29

@jmaselbas
Copy link
Owner

I just thought you might try to disable verifying (-n option) and see if your design boots.
I doubt this will work but maybe only the verification step fails.

@jmaselbas
Copy link
Owner

jmaselbas commented Mar 26, 2023

I got the same issue with the CH32V208 eval board that I received...
I somehow finally managed to write to the device but I don't really know how nor why...
And I cannot reproduce this issue anymore after the first successful write, weird.

@jmaselbas
Copy link
Owner

I think I've understand the issue, the WRP write protection need to be disabled.
I've just pushed a new tag with a new command disable-wp, you might want to give it a try, also the device might need to be reset before trying the write operation again.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants