Skip to content

Commit

Permalink
fix: reset value of ch58x, fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Feb 22, 2023
1 parent bb963a6 commit e79cb78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This tool is a work in progress.
- `wchisp config`
- works for most chips, but not all. Issues and PRs are welcomed
- [ ] write config registers
- [x] reset config registers to default(unprotected, debug-enabled state)
- [x] reset config registers to default
- [ ] write config with friendly register names? like `wchisp config set SRAM_CODE_MODE=1 ...`
- [x] EEPROM dump
- [x] EEPROM erase
Expand Down
6 changes: 4 additions & 2 deletions devices/0x16-CH58x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ config_registers:
name: USER_CFG
description: User non-volatile configuration
# CFG_DEBUG_EN=1、CFG_RESET_EN=0、CFG_ROM_READ=1
# Enable 2-wire debug
reset: 0x4FFF0FD5
# Enable 2-wire debug: 0x4FFF0FD5
# See-also: #26
reset: 0x4d0fff4f
type: u32
fields:
- bit_range: [2, 0]
Expand Down Expand Up @@ -69,6 +70,7 @@ config_registers:
name: RESERVED
#explaination:
# 0xFFF0F: Default
# _: Error
- bit_range: [31, 28]
name: VALID_SIG
description: "Configuration information valid flag, fixed value"
Expand Down

0 comments on commit e79cb78

Please sign in to comment.