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

Reworked most #21

Merged
merged 21 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
910259c
Reworked most, first commit.
Pe3ucTop Jan 26, 2022
bd092a4
Bug fix of receiving size depend on endpoint. UID/BOOTLOADERVER/CFGs …
Pe3ucTop Mar 21, 2022
e7c9d64
Added file data size check to fit in flash. Error reporting sizes in …
Pe3ucTop Mar 21, 2022
4917e97
Reworked process "End" to single functions because it is single coman…
Pe3ucTop Mar 21, 2022
1ff1982
Bootloader version check now reworked so value represented as float a…
Pe3ucTop Mar 21, 2022
f55de58
Make chip reference field names shorter by removing "device_" prefix.
Pe3ucTop Mar 21, 2022
677f2a7
Added chips: CH32V103, CH549, CH32V307, CH571/3/9, CH582. Reformated …
Pe3ucTop Mar 21, 2022
db8c180
Splitt comand line functions and added new. Fixed behavior/error if e…
Pe3ucTop Mar 21, 2022
4124fd8
Added data flash operations.
Pe3ucTop Mar 21, 2022
ec26953
Update README.md
Pe3ucTop Mar 21, 2022
308584a
Reworked chips definition (parameters) to be taken from attached orig…
Pe3ucTop Mar 22, 2022
081a3d2
Adder chip configuration bits printout option.
Pe3ucTop Mar 22, 2022
b589fe0
Updated USB_MAX_TIMEOUT to 5000 to not fail long erase case.
Pe3ucTop Mar 22, 2022
6fed693
Update Data(EEPROM) erase function to pass value 1 even if size is le…
Pe3ucTop Mar 23, 2022
a36ca78
Added OTP Read/Write definitions, added option to read and print OTP,…
Pe3ucTop Mar 23, 2022
983a014
Added option for more verbose output. Added Fail address report.
Pe3ucTop Mar 23, 2022
b92f21d
Prevent 'detection break' by reading CFGs bits as additional last ope…
Pe3ucTop Mar 30, 2022
a43f01a
First implementation of config option definition in extended and opti…
Pe3ucTop Mar 30, 2022
a10ab1d
Implemented real Config Bits writing, use at YOUR OWN RISK for now, n…
Pe3ucTop Mar 30, 2022
5fa3686
Added parameter to list configuration options for detected chip.
Pe3ucTop Mar 30, 2022
04646da
Added processing of option settings after all operations.
Pe3ucTop Mar 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ An open sourced python command line flash tool for flashing WinChipHead CH55x se

Usage
------------
* __-f \<filename\>__ Erase the whole chip, and flash the bin file to the CH55x.
* __-r__ Issue reset and run after the flashing.
* __-f/--flash \<filename\>__ Erase the whole chip, and flash the bin file to the CH55x.
* __-e/--erase\_flash__ Erase the whole program flash.
* __--verify\_flash__ [filename] Verify program flash contend with given file, if filename ommited verifying with flashed data. No verifying perormed without this flag.
* __-r/--reset\_at\_end__ Issue reset and run after all.
* __-d/--data \<filename\>__ Erase the whole data flash and write the bin file to the CH55x.
* __-c/--erase\_dataflash__ Erase the whole data flash.
* __--verify\_data__ [filename] Verify data flash contend with given file, if filename ommited verifying with written data. No verifying perormed without this flag.
* __-g/--read\_dataflash__ Read content of data flash to file.
* __-p/--print\_chip\_cfg__ Read and print chip configuration bits 3 x 32 bit values.


```bash
python3 -m ch55xtool -f THE_BINARY_FILE.bin
Expand Down
Loading