protocol auto should use stc15a for stc15f204ea
Created by: zerog2k
noticing when I use protocol=auto, that it does not seem to work with stc15f204ea, but if I specify protocol stc15a, it will work.
jens@spire:~/build/stc_diyclock$ stcgal/stcgal.py -p /dev/ttyUSB0 -t 11059 -P auto -a main.hex
Cycling power: done
Waiting for MCU: done
Protocol detected: stc15
Target model:
Name: STC15F204EA
Magic: F394
Code flash: 4.0 KB
EEPROM flash: 1.0 KB
Target frequency: 0.000 MHz
Target BSL version: 6.7.12R
Target wakeup frequency: 2.689 KHz
Target options:
reset_pin_enabled=True
clock_source=external
clock_gain=high
watchdog_por_enabled=True
watchdog_stop_idle=False
watchdog_prescale=8
low_voltage_reset=True
low_voltage_threshold=1
eeprom_lvd_inhibit=True
eeprom_erase_enabled=True
bsl_pindetect_enabled=True
por_reset_delay=short
rstout_por_state=high
uart2_passthrough=False
uart2_pin_mode=normal
cpu_core_voltage=unknown
Loading flash: 3308 bytes (Intel HEX)
Switching to 19200 baud: Serial port error: read timeout
jens@spire:~/build/stc_diyclock$
jens@spire:~/build/stc_diyclock$ stcgal/stcgal.py -p /dev/ttyUSB0 -t 11059 -P stc15a -a main.hex
Cycling power: done
Waiting for MCU: done
Target model:
Name: STC15F204EA
Magic: F394
Code flash: 4.0 KB
EEPROM flash: 1.0 KB
Target frequency: 11.063 MHz
Target BSL version: 6.7R
Target options:
reset_pin_enabled=True
watchdog_por_enabled=False
watchdog_stop_idle=False
watchdog_prescale=256
low_voltage_reset=True
low_voltage_threshold=4
eeprom_lvd_inhibit=True
eeprom_erase_enabled=False
bsl_pindetect_enabled=False
Loading flash: 3308 bytes (Intel HEX)
Trimming frequency: 11.063 MHz
Switching to 19200 baud: done
Erasing 14 blocks: done
Writing flash: 3648 Bytes [00:03, 1123.94 Bytes/s]
Finishing write: done
Setting options: done
Target UID: F39401A0056485
Disconnected!