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

Uploading a code via UART #45

Closed
radoslavilievm2m opened this issue Apr 2, 2021 · 5 comments
Closed

Uploading a code via UART #45

radoslavilievm2m opened this issue Apr 2, 2021 · 5 comments

Comments

@radoslavilievm2m
Copy link

Hi, I have to have the possibility to upload a code via UART.
Does do you mean enter in bootload mode to access as a function 0xF400 address of the CH559 chip or something else? I tried it in this way, but without any success.
Thank you in advance.

@tapir
Copy link

tapir commented Jun 8, 2021

I would also appreciate if you could shed some light on how to upload data via UART. Do we still need bootloader in this case, can just override it?

@radoslavilievm2m
Copy link
Author

Hi,
The vendor of CH559 chips have an application, that do it on UART0 0.2 and 0.3 pins without modifying the bootloader, but the protocol is closed source.
You can do IAP (In-app programing) by your own about it, and after several emails with WCH they told me that this is the best variant for doing it.

@tapir
Copy link

tapir commented Jun 8, 2021

OK so looks like the USB programming is the way to go then. Thanks.
For IAP there is some code examples here: https://github.com/SoCXin/CH559/tree/master/tools/IAP

@DeqingSun
Copy link
Owner

The upload tool does support serial upload. At least for ch554. Other variant not tested.

https://github.com/DeqingSun/vnproch551

The binary can be found in the Arduino package. But you need to run it in command line.

@radoslavilievm2m
Copy link
Author

Okay, I'll test it when I have the possibility and write the result. I hope it will work, because it will fix a lot of problems around my project.

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

No branches or pull requests

3 participants