Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stc89 packet checksum mismatch #22

Closed
wapznw opened this issue Mar 13, 2017 · 13 comments
Closed

stc89 packet checksum mismatch #22

wapznw opened this issue Mar 13, 2017 · 13 comments

Comments

@wapznw
Copy link

wapznw commented Mar 13, 2017

执行:

./stcgal.py -P auto ../c51demo/MAIN.hex

提示错误:

Waiting for MCU, please cycle power: done
Protocol detected: stc89
Protocol error: packet checksum mismatch
Disconnected!

执行:

./stcgal.py -P stc89 ../c51demo/MAIN.hex

提示:

Waiting for MCU, please cycle power:

开发板重新上电后没反应。

系统: OS X:10.10.5

@grigorig
Copy link
Owner

grigorig commented Mar 13, 2017

Can you provide any more details about the board and MCU model? Also, please write in English, if possible.

Please provide debug output by running stcgal with the -D option.

@grigorig
Copy link
Owner

grigorig commented Jul 3, 2017

This might be a duplicate of #8.

@Pyloons
Copy link

Pyloons commented Aug 2, 2017

This issue perhaps has same problem as my issue.
there just some chinese like
run:
raise error:
run:
stay the cycle waiting:
restart develope board and have no reaction.
System is OSX 10

@SUCHMOKUO
Copy link

Same issue for me..

@Drummerboy458
Copy link

LwwdeMacBook-Air:Desktop lww$ stcgal -a -P stc89 -p /dev/tty.wchusbserial1410 -b 9600 -l 9600 -D main.ihx
Cycling power: done
Waiting for MCU: <- Packet data: 00
<- Packet data: 46 B9 68 00 29 50 FD 00 00 00 00 00 00 00 00 00 00 00 00 5F 00 00 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 18 09 06 60 09 93 16
<- Packet data: 00
<- Packet data: 00
<- Packet data: 46 B9 68 00 29 50 FD 00 00 00 00 00 00 00 00 00 00 00 00 5F 00 00 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 18 09 06 60 09 93 16
<- Packet data: 30
<- Packet data: 2E
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 56
<- Packet data: 20
<- Packet data: 20
<- Packet data: 4E
<- Packet data: 61
<- Packet data: 4E
<- Packet data: 63
<- Packet data: 6D
<- Packet data: 0D
<- Packet data: 0A
<- Packet data: 30
<- Packet data: 2E
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 56
<- Packet data: 20
<- Packet data: 20
<- Packet data: 4E
<- Packet data: 61
<- Packet data: 4E
<- Packet data: 63
<- Packet data: 6D
<- Packet data: 0D
<- Packet data: 0A
<- Packet data: 30
<- Packet data: 2E
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 56
<- Packet data: 20
<- Packet data: 20
<- Packet data: 4E
<- Packet data: 61
<- Packet data: 4E
<- Packet data: 63
<- Packet data: 6D
<- Packet data: 0D
<- Packet data: 0A
<- Packet data: 30
<- Packet data: 2E
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
<- Packet data: 30
It just cannot stop.What's the problem~help

@Drummerboy458
Copy link

By the way, I have the same problem.

@uxfion
Copy link

uxfion commented Jan 19, 2019

I have the same problem. Packet checksum mismatch. Here is -D
sudo stcgal -D
Waiting for MCU, please cycle power: <- Packet data: 46 B9 68 00 29 50 FD E3 9E 6A 1B F1 69 DD D3 B1 0E FD 01 7F 6B 4A 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 18 09 08 60 11 37 16
done
Protocol detected: stc89
<- Packet data: 46 B9 68 00 29 50 FD E3 9E 6A 1B F1 69 DD D3 B1 0E FD 01 7F 6B 4A 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 18 09 08 60 11 37 16
Protocol error: packet checksum mismatch
-> Packet data: 46 B9 6A 00 06 82 F2 16
Disconnected!

@uxfion
Copy link

uxfion commented Jan 19, 2019

Ubuntu 16.04 STC89C52 by the way

@histriver
Copy link

As luck i have two STC MCU, one is STC89C52, another is STC90C516RD+. the experiment show that STC90C516RD+ is all right and can write success, the STC89C52 show the same error: Protocol error: packet checksum mismatch. the os is macOS High Sierra 10.13.6.

so i think i need buy another STC89C52RC to replace STC89C52. maybe it will work normal.

@TomXia
Copy link

TomXia commented Aug 1, 2019

Hi there. @grigorig @ Thanks for your efforts.
Same issue for me.
localhost:~ tomxia$ stcgal -p /dev/tty.wchusbserial1410 -D Waiting for MCU, please cycle power: <- Packet data: 46 B9 68 00 29 50 FD 01 87 43 49 8A 0B C3 6A 84 2B 0B 01 9F A9 F1 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 19 04 08 60 0E FC 16 done Protocol detected: stc89 <- Packet data: 46 B9 68 00 29 50 FD 01 87 43 49 8A 0B C3 6A 84 2B 0B 01 9F A9 F1 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 19 04 08 60 0E FC 16 Protocol error: packet checksum mismatch -> Packet data: 46 B9 6A 00 06 82 F2 16 Disconnected!
CH340C, STC89C52, macOS 10.13.6
In my case, stcgal is not working on Windows as well with same error.
The MCU works well while using STC-ISP on windows VM.

@yuangu
Copy link

yuangu commented Feb 25, 2020

Same issue for me.

 stcgal -P auto  -p /dev/tty.wchusbserial14320 -D
Waiting for MCU, please cycle power: <- Packet data: 46 B9 68 00 29 50 FD 20 20 48 65 6C 6C 6F 20 57 6F 72 01 7F 21 20 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 19 09 09 60 0D 85 16
done
Protocol detected: stc89
<- Packet data: 46 B9 68 00 29 50 FD 20 20 48 65 6C 6C 6F 20 57 6F 72 01 7F 21 20 72 43 00 F0 51 05 80 00 FF FF FF FF 38 20 19 09 09 60 0D 85 16
Protocol error: packet checksum mismatch
-> Packet data: 46 B9 6A 00 06 82 F2 16
Disconnected!

@503badgateway
Copy link

broad 8051
os ubuntu20
same

@grigorig
Copy link
Owner

grigorig commented Jun 2, 2023

If any one of you is still here: newer STC89 devices have a newer bootloader with some protocol changes. Please try again with the latest release and specify the "stc89a" protocol manually.

@grigorig grigorig closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants