chenjie 发表于 2023-1-18 10:04:49

STC8G1K08A-36I-SOP8烧录不进去固件

原理图:


神农鼎 发表于 2023-1-18 10:31:56

都放假了,你淘宝上买个如下工具烧录

神农鼎 发表于 2023-1-18 10:32:48

都放假了,你淘宝上买个如下工具烧录

神农鼎 发表于 2023-1-18 10:36:23


如下:第三方 USB 转串口,隔离锗二极管必须加



chenjie 发表于 2023-1-18 14:10:19

还是不能下载

神农鼎 发表于 2023-1-18 14:20:35

连接到电脑的详细的原理图,你没发上来,这部分电路可能有问题,
我们已放假,你抓紧淘宝买个我们的工具,马上过节了,快递都是问题
https://www.stcaimcu.com/data/attachment/forum/202301/18/103156qu9ajflrc0a9v23a.png

https://www.stcaimcu.com/data/attachment/forum/202301/18/103248kht9wpohztcdhpch.png

Kol9nbl4 发表于 2023-1-31 17:50:06

Hey
Problem with STC8G1K08A
After the firmware, the controller does not start.
The code:
#include<reg51.h>

sbit OUT2 = P3^3;

void Delay500us()                //@11.0592MHz
{
        unsigned char i, j;

        i = 6;
        j = 93;
        do
        {
                while (--j);
        } while (--i);
}


int main () {
       
        while (1) {
               
       
                OUT2 = 0;
                Delay500us();

                OUT2 = 1;
                Delay500us();       
}
        }


Log STC-ISP

Checking target MCU ...
MCU type: STC8G1K08A-8PIN
F/W version: 7.3.12U

Current H/W Option:
. ISP-IRC frequency: 23.686MHz
. IRC frequency: 11.058MHz
. Wakeup Timer frequency: 35.100KHz
. Do not detect the level of P3.2 and P3.3 next download
. Power-on reset, use the extra power-on delay
. RESET pin behaves as IO pin
. Reset while detect a Low-Voltage
. Thresh voltage level of the built-in LVD : 2.00 V
. Hardware enable Watch-Dog-Timer when power-on reset
. Watch-Dog-Timer pre-scalar : 256
. Watch-Dog-Timer stop count in idle mode
. Erase user EEPROM area at next download
. Do not control 485 at next download
. Do not check user password next download
. Reference voltage: 1190 mV (Range: 1100~1300mV)
. Testing time: 2021-8-12

MCU type: STC8G1K08A-8PIN
F/W version: 7.3.12U

Adjusting frequency ...                       
Adjusted frequency: 11.062MHz (0.022%)

Re-handshaking ... Successful                       
Current Baudrate: 115200
Erasing MCU flash ...OK !               
Programming user code ... OK !               
Programming OPTIONS ... OK !               

H/W Option upgrade to:
. ISP-IRC frequency: 23.686MHz
. IRC frequency: 11.062MHz
. Wakeup Timer frequency: 35.100KHz
. Do not detect the level of P3.2 and P3.3 next download
. Power-on reset, use the extra power-on delay
. RESET pin behaves as IO pin
. Reset while detect a Low-Voltage
. Thresh voltage level of the built-in LVD : 3.00 V
. Hardware enable Watch-Dog-Timer when power-on reset
. Watch-Dog-Timer pre-scalar : 256
. Watch-Dog-Timer stop count in idle mode
. Erase user EEPROM area at next download
. Do not control 485 at next download
. Do not check user password next download
. Reference voltage: 1190 mV (Range: 1100~1300mV)
. Testing time: 2021-8-12
MCU ID : F794C4A304863A

MCU type: STC8G1K08A-8PIN
F/W version: 7.3.12U

. Set frequency: 11.059MHz
. Adjusted frequency: 11.062MHz (clock divider = 2)
. Trim error: 0.022%


Complete !(2023-01-31 12:47:46)

Where did the error creep in?

kksk 发表于 2023-1-31 18:45:05

Kol9nbl4 发表于 2023-1-31 17:50
Hey
Problem with STC8G1K08A
After the firmware, the controller does not start.


The reference manual for STC8H in English is available here: http://www.stcmcudata.com/STC8F-DATASHEET/STC8H-EN.pdf


Please refer to section 9 I/O Ports. You have to configure your MCU IOs before using since all the IOs (except P3.0 and P3.1) are in high-impedance by default. For instance, at the beginning of your main function, add:
P3M0 = 0x00; P3M1 = 0x00;

In addition, if you have any further question, you can enter the relavent mod from the index (click the bold text next to bubbles in gray or yellow) and then click "发帖" button with blue background (since it is a picture so it won't be translated). That means creating a new thread instead of replying a current one.

神农鼎 发表于 2023-1-31 18:59:32


OK,success

OK,success

kksk 发表于 2023-1-31 19:00:07

Kol9nbl4 发表于 2023-1-31 17:50
Hey
Problem with STC8G1K08A
After the firmware, the controller does not start.


See STC8G manual here: www (dot) stcmcudata (dot) com . Search STC8G, and here is an item named "STC8G系列英文用户手册". Sorry for my last reply (currently security check pending ince it contains url) gave that for STC8H.



Here's an extract:



Codes also available in stc-isp (not a tiny version):


页: [1] 2
查看完整版本: STC8G1K08A-36I-SOP8烧录不进去固件