area-8051 / stcgal-patched Goto Github PK
View Code? Open in Web Editor NEWstcgal patched to support STC8G, STC8H, STC8A8K64D4 and STC32G.
stcgal patched to support STC8G, STC8H, STC8A8K64D4 and STC32G.
This project has been merged into STCGAL and I now contribute to its maintenance. You should now use https://github.com/grigorig/stcgal instead, or just pip install stcgal.
Hello,
I am using a PCB that contains the STC8A64D4-LQFP44 device. The board contains a FTDI device (FT234XD-R). When plugged in the FTDI chip is powered from the USB but this rail is not shared to the PCB. I am able to program the board using a windows machine and the STC-ISP software by pressing the download button and then powering on the main part of the PCB. When I try to program using STCGAL (and make files from UNI-STC project) it sits at Waiting for MCU endlessly. Is there any suggestions you can provide on debugging this? I know the STCGAL installation works as I can program a demo board with the STC8A64D4-LQFP48 on it.
Thanks in advance.
According to its datasheet, microcontrollers part of the STC8G family have an integrated high-precision internal IRC oscillator, which can be used in two frequency ranges depending on the content of the IRCBAND register:
The adjustment range of the 20M band is about 14.7MHz to 26MHz (LSB=0).
The adjustment range of the 33M band is about 24.5MHz to 42.2MHz (LSB=1).
However, I cannot use the upper frequency band via frequency trimming using the -t 30000 parameters.
I read in the FAQ that the safe range is 5MHz-30MHz. Can this range be extended somehow?
I'm trying to set the reset_pin_enabled target option.
However it does not ever appear to be set to true after repeated power cycles/isp reads.
I do know that options like eeprom_erase_enabled persist after erasing chip and so remain true until cleared.
I also tried driving the pin high anyway but it does not seem to force a reset.
I have a CP102x based usb to uart with output DRT pin which I inverted with 2N2222 transistor.
This makes the reset pulse active high, but again no reset appears to occur.
What am I missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.