can not recognition STC89c52
buring STC89C52RC is ok! but bring STC89C52 can not recognition, no find STC89C52 device。
Hi,
can you provide more detail? Please run stcgal with the -D parameter and post the commandline and full log.
Hi, I sorry, I try to got more detail. using:
stcgal.py -p /dev/tty.wchusbserial1450 -a -D stcgal.py -P auto -p /dev/tty.wchusbserial1450 -a -D stcgal.py -p /dev/tty.wchusbserial1450 -D
the stcgal unable to continue, stays there:
Cycling power: done Waiting for MCU:
Is there any other way to get more information? I buring with two devices computers, STC89C52RC is OK, STC89C52 stays :Waiting for MCU:
<Ubuntu 18.04.1 + stcgal 1.6.> I met a similar issue too, both on STC89C52 and STC90C516RD+,while downloading the program it just breaks down at Waiting for MCU: BTW: the old stcflash.py could download to STC90C516RD+ successfully, but it either could not work on STC89C52. anyone who has STC90C516RD or STC90C516RD+ could use the stcflash.py temporarily.
There is a list of supported/tested MCU models:
https://github.com/grigorig/stcgal/blob/master/doc/MODELS.md
Unfortunately, there are various possible hardware and software issues that can break things. See the FAQ for mote detail.
I have noticed that it not support 'STC89C52' then I quickly buy STC89C52RC😝
It's work to change extract_payload function in protocols.py. form
packet_csum = packet[-2]
calc_csum = sum(packet[2:-2]) & 0xff
to
packet_csum = packet[-2] + (packet[-3] << 8)
calc_csum = sum(packet[2:-3]) & 0xffff
refer to: https://github.com/azman/my1stcflash/blob/master/src/my1stc.c
and use
stcgal.py -P stc12 -p /dev/tty.wchusbserial14310 -D
is work too
soory for my poor english
Fixed (use stc89a protocol).
亲,我已收到你的邮件,谢谢!