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

recovering STC89C52RC #102

Open
lynchaj opened this issue Jan 27, 2024 · 1 comment
Open

recovering STC89C52RC #102

lynchaj opened this issue Jan 27, 2024 · 1 comment

Comments

@lynchaj
Copy link

lynchaj commented Jan 27, 2024

Hi
Is there a way to recover an STC89C52RC that is no longer responding to erase commands? To reset it back to factory conditions?

I was experimenting with my STC89C52RC dev board and it work great for a while but after one program I loaded, it stopped responding to erase and reprogram commands.

Any ideas? It seems the BSL is responding at least somewhat but whatever is in the STC89C52RC is running away and not allowing me to erase it or reprogram it.

Maybe is another programmer needed with more capability to wipe the STC89R52RC?

Thanks in advance for your help

@lynchaj
Copy link
Author

lynchaj commented Jan 27, 2024

Hi
OK, some good news. I was able to use this program at ceptimus STC89C5xProgrammer to regain control of my STC89C52RC chip. It can be found here:

https://ceptimus.co.uk/index.php/2015/12/15/isp-programmer-for-the-stc89c51-and-stc89c52/

I used the program to upload a LED blinker program that I know worked. Once the LED blinker was working, I moved the dev board over to my Linux notebook and used stcgal to check its status and then "stcgal -e" to erase the Flash memory.

Now the STC89C52RC and dev board are behaving normally. Not sure why the STC89C5xProgrammer worked when the stcgal didn't. Maybe there is a bug in stcgal?

Thanks

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

1 participant