grigorig / stcgal

Open Source STC MCU ISP flash tool
642 stars 135 forks source link

Can't STC8G use the tool? #67

Closed XiaoPb closed 1 year ago

XiaoPb commented 3 years ago

Can't STC8G use the tool? When I used stcgal, I can't download program for my STC8G board.

Cycling power: done
Waiting for MCU: done
Protocol detected: stc8     
Target model:
  Name: STC8G1K17-20/16P    
  Magic: F757
  Code flash: 17.0 KB       
  EEPROM flash: 0.0 KB      
Target frequency: 32.009 MHz
Target BSL version: 7.3.10U 
Target wakeup frequency: 35.125 KHz
Target ref. voltage: 1193 mV
Target mfg. date: 2020-03-16
Target options:
  reset_pin_enabled=True
  clock_gain=high
  watchdog_por_enabled=False
  watchdog_stop_idle=True
  watchdog_prescale=256
  low_voltage_reset=True
  low_voltage_threshold=0
  eeprom_erase_enabled=True
  bsl_pindetect_enabled=False
  por_reset_delay=long
  rstout_por_state=high
  uart1_remap=False
  uart2_passthrough=True
  uart2_pin_mode=push-pull
  epwm_open_drain=True
  program_eeprom_split=29440
Loading flash: 354 bytes (Intel HEX)
Trimming frequency: Protocol error: frequency trimming unsuccessful
Disconnected!
Kashouryo commented 3 years ago

Grigorig is working on this issue. Probably duplicated with #63.

yuyi1005 commented 3 years ago

Here is a solution: https://github.com/grigorig/stcgal/issues/63#issuecomment-824749718

IOsetting commented 2 years ago

I am working on another tool stc8prog for STC8G/STC8H flash programming.

area-8051 commented 2 years ago

This issue is solved by CreativeLau's pull request. I made it available here: https://github.com/area-8051/stcgal-patched/

area-8051 commented 1 year ago

Fixed (merged stcgal-patched).