carlossless / sinowealth-kb-tool

A utility for reading and writing flash contents on Sinowealth 8051-based HID devices through the commonly found ISP bootloader
MIT License
54 stars 15 forks source link

Arguments for reading/writing to custom devices #17

Closed carlossless closed 8 months ago

carlossless commented 8 months ago

Changes here allow the user to override the default options for the specified part, or provide all of the options necessary to interface with a part that hasn't been added to the parts list in this tool.

Example with custom part:

sinowealth-kb-tool read \
    --flash_size 61440 \
    --bootloader_size 4096 \
    --page_size 2048 \
    --vendor_id 0x05ac \
    --product_id 0x024f \
    foobar.hex

Example with overriding options:

sinowealth-kb-tool read \
    -p nuphy-air60 \
    --vendor_id 0x05ac \
    --product_id 0x024f \
    foobar.hex