ch32-rs / wlink

An open source WCH-Link library/command line tool written in Rust.
Apache License 2.0
155 stars 25 forks source link

Set default chip type via configuration file? #25

Closed gerryqd closed 10 months ago

gerryqd commented 11 months ago

I tried to launch command without "--chip" parameter, it reports below warnings,

06:29:32 [INFO] WCH-Link v2.10 (WCH-LinkE-CH32V305)
06:29:32 [WARN] No expected chip type specified, assume CH32V30X (use --chip to specify chip type)
06:29:32 [INFO] Attached chip: CH32V003(0x00310500)

Is there any way to check the default chip number instead of always adding it to the command line?

Maybe a configuration file helpful for this? for example, a '.wlink.cfg', which has some configuration items.

andelf commented 11 months ago

Thanks. This can be acquired via the protocol.