cnlohr / ch32v003fun

Open source minimal stack for the ch32 line of WCH processors, including the ch32v003, a 10¢ 48 MHz RISC-V Microcontroller - as well as many other chips within the ch32v/x line.
MIT License
958 stars 146 forks source link

Make minichlink print flash amount #284

Open cnlohr opened 8 months ago

cw2 commented 7 months ago

What do you mean by that? minichlink already prints flash amount during setup:

Found WCH Link
WCH Programmer is CH32V307 version 2.11
Detected: CH32V003
Setup success
Flash Storage: 16 kB
...

So is the issue to (e.g.) add a new command to output just the flash amount separately?

TommyMurphyTM1234 commented 5 months ago

Perhaps @cnlohr meant to print the amount of flash actually written during programming? E.g. the start address and extent or something like that?

../../ch32v003fun/../minichlink/minichlink -w blink.bin flash -b
Found WCH Link
WCH Programmer is LinkE version 2.11
Chip Type: 003
Setup success
Flash Storage: 16 kB
Part UUID    : ...
PFlags       : ff-ff-ff-ff
Part Type (B): 07-13-bb-91
Read protection: disabled
Interface Setup
Image written.