stcgal icon indicating copy to clipboard operation
stcgal copied to clipboard

can not recognition STC89c52

Open IKTSmart opened this issue 7 years ago • 6 comments

buring STC89C52RC is ok! but bring STC89C52 can not recognition, no find STC89C52 device。

IKTSmart avatar Jul 03 '18 15:07 IKTSmart

Hi,

can you provide more detail? Please run stcgal with the -D parameter and post the commandline and full log.

grigorig avatar Jul 03 '18 16:07 grigorig

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:

IKTSmart avatar Jul 12 '18 15:07 IKTSmart

<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.

Moufunliux avatar Oct 08 '18 16:10 Moufunliux

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.

grigorig avatar Oct 08 '18 16:10 grigorig

I have noticed that it not support 'STC89C52' then I quickly buy STC89C52RC😝

uxfion avatar Jan 20 '19 15:01 uxfion

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

yuangu avatar Feb 25 '20 11:02 yuangu

Fixed (use stc89a protocol).

area-8051 avatar Jun 01 '23 17:06 area-8051

亲,我已收到你的邮件,谢谢!

IKTSmart avatar Jun 01 '23 17:06 IKTSmart