Skip to content

hanzhang2/stc89c52

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux编译烧录51单片机

选用sdcc进行编译,stcgal进行烧录

ubuntu

    sudo apt-get install sdcc
    pip3 install stcgal

编译器选择vscode

为了让编译器适应keil 需要添加keil头文件

    git clone https://github.com/hanzhang2/stc89c52
    cd stc89c52
    sudo cp keil.h /usr/share/sdcc/include/mcs51

目录结构

├── build │   ├── build.sh │   ├── insert.sh │   ├── main.hex │   └── sources │   ----- ├── car │   ├── car.c │   └── car.h ├── config │   ├── config.c │   └── config.h ├── interrupt │   ├── interrupt.c │   └── interrupt.h └── time ├── time.c └── time.h ├── main.c ├── main.lk ├── README.md

编译方法

    cd bulid
    sudo chmod +x build.sh
    ./build.sh

烧录方法

    cd bulid
    sudo chmod +x insert.sh
    ./insert.sh

About

I am vegetable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published