Replies: 1 comment
-
Hi The second program is called PAULMON2 from the PJRC 8051 dev board. When I loaded it into the STC89C52, it worked fine seemingly. However, my version supports 1200 baud although I think it could go faster. That seemed to work fine and it was nice to have a serial debug monitor. PAULMON2 is almost exactly 4KB long. When I tried to load a version with PAULMON2 with extension programs is when I think I corrupted the STC89C52 BSL or some important setting. It doesn't work properly anymore. I have tested with other "blank" STC89C52 devices because I bought 5 in case I wrecked some experimenting. It looks like that was a good idea but it sure would be nice to recover this one I messed up. Thanks, Andrew Lynch |
Beta Was this translation helpful? Give feedback.
-
Hi
I have a simple STC89C52RC and a small dev board with a USB to serial cable. Earlier I got stcgal to work with the STC89C52 and was uploading programs like LEDBlink and it was working great. I could query the chip and it responded. I could erase the Flash and reload my programs. But something went wrong and I think I've accidentally corrupted my BSL or set something that prevents it from responding properly. Here is a transcript. Can anyone identify what the problem is and how to fix it?
Thanks, Andrew Lynch
lynchaj@Acer-D255-NoteBook: $ stcgal
Waiting for MCU, please cycle power: done
Protocol detected: stc89
Target model:
Name: STC89C52RC/LE52RC
Magic: F002
Code flash: 8.0 KB
EEPROM flash: 6.0 KB
Target frequency: 11.030 MHz
Target BSL version: 6.6C
Target options:
cpu_6t_enabled=False
bsl_pindetect_enabled=False
eeprom_erase_enabled=False
clock_gain=high
ale_enabled=True
xram_enabled=True
watchdog_por_enabled=False
Disconnected!
lynchaj@Acer-D255-NoteBook: $ stcgal -e
Waiting for MCU, please cycle power: done
Protocol detected: stc89
Target model:
Name: STC89C52RC/LE52RC
Magic: F002
Code flash: 8.0 KB
EEPROM flash: 6.0 KB
Target frequency: 11.088 MHz
Target BSL version: 6.6C
Target options:
cpu_6t_enabled=False
bsl_pindetect_enabled=False
eeprom_erase_enabled=False
clock_gain=high
ale_enabled=True
xram_enabled=True
watchdog_por_enabled=False
Switching to 115200 baud: checking Protocol error: incorrect frame start
Disconnected!
lynchaj@Acer-D255-NoteBook:~$
Beta Was this translation helpful? Give feedback.
All reactions