MarsTechHAN / ch552tool

An open sourced python tool for flashing WCH CH55x series USB microcontroller with bootloader v2.30, v2.31 & v2.40.
GNU General Public License v3.0
154 stars 24 forks source link

Put CH569 in debug mode #23

Open hansfbaier opened 2 years ago

hansfbaier commented 2 years ago

Hi, When I send those commands, I can put the CH569 in debug mode (or disable it):

ENABLE_DEBUG_CMD = [
    0xa8, 0x0e, 0x00, 0x07, 0x00,
    0x11, 0xbf, 0xf9, 0xf7, 
    0x13, 0xbf, 0xf9, 0xec,
    0xe5,       
    0xf2,        
    0xff, 0x8f 
]

DISABLE_DEBUG_CMD = [
    0xa8, 0x0e, 0x00, 0x07, 0x00,
    0x11, 0xbf, 0xf9, 0xf7,
    0x13, 0xbf, 0xf9, 0xec,
    0x45,
    0xf2,
    0xff, 0x8f
]