Сижу, тихонечко реверсю just for fun протокол, по которому шьются микроконтроллеры STC ( http://stc-51.com )
В общем, впервые мой пруф оф концепт заработал, загрузил код, и диод замигал.
    [necromant@ilwyn stcdude]$ sudo ./stcdude -p /dev/ttyUSB0 -b 1200 -w test -d ./mcudb/stc12x.lua
    STC ISP Tool. (c) Necromant 2012
    lines 66
    columns 271
    Using mcudb file: ./mcudb/stc12x.lua
    Loading lua script: ./init.lua
    Loading lua script: ./mcudb/stc12x.lua
    Using /dev/ttyUSB0 @ 1200
    fd is 3
     
    Waiting for an infopacket from MCU...
    MCU DB information
    Part name:       STC12C5A60S2
    Magic bytes:     D17E
    IRAM size:       256 (0x100) bytes
    XRAM size:       1024 (0x400) bytes
    IROM size:       61440 (0xf000) bytes
    Tested ops: FixMe: implement reading of tested ops
    Description:
            8051-based microcontroller with 1T(1-clock) High-Speed Core,
            Dual DPTR, 36-44 I/O Lines, 2 Timers/Counters, 2 PCA Timers,
            Alternative build-in oscillator,
            Independent Baud Rate Generator, Programmable Clock-Out,
            60K bytes flash ROM, 1280 bytes data RAM,
            On-chip EEPROM, 2 UARTs, WDT, ISP/IAP, A/D, CCP/PWMl
    MCU Options information:
    MCU Clock: 12.034433 Mhz (5825.000000 raw)
    Bootloader version: 6.2I
    Running io scenario...
    Loading lua script: default.lua
    Got 1 bytes
     Performing baudswitch dance
    Baudrate switch to 57600
    Got 8 bytes
     response:  C0  F3  3F  1A  28  82  3  8F
    Baudrate switch to 1200
    Baudrate switch to 57600
    Got 7 bytes
     response:  C0  F3  3F  1A  28  3  84
    Erasing mcu flash...
    Got 1 bytes
     response:  0
    Downloading blink.bin (164 bytes)
     100 % done | ############################################################ |









