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

Cannot flash CH559 board, but WCHISP can do it. #9

Open
agatti opened this issue Sep 4, 2020 · 2 comments
Open

Cannot flash CH559 board, but WCHISP can do it. #9

agatti opened this issue Sep 4, 2020 · 2 comments

Comments

@agatti
Copy link

agatti commented Sep 4, 2020

Hello,

I seem to have a CH559 board with bootloader 2.31 that cannot be flashed using this program even though it can be flashed fine using the WCHISP tool under Windows. Using ch55xtool flashes fail with a verification error, although nothing gets written to the board.

Now, I've captured the USB traffic on Windows by WCHISP if that helps, along with the firmware I flashed - so you can eventually check what WCHISP is doing differently.

In the meantime is there anything I can do on my end to further debug the issue in ch55xtool?

Thanks!

firmware.bin.gz
usb_flash.pcapng.gz

@MarsTechHAN
Copy link
Owner

Hi, so my suggestion would be use the Wireshark to capture the USB sequence with the ch55xtool with debug on, comparing the difference in what the official tools send, and paste here. I dont have a ch559 with btver2.31 by my hand, but I think they use the same protocol as other ch55x。

@Pe3ucTop
Copy link
Contributor

I think this problem relay on wrong erase command, which erase only firs 8kb.
Because of that verification after flashing could definitely fail for big programs.
Problem was reported in #17 , there is first fix but probably not final.

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

No branches or pull requests

3 participants