linux环境下学习51单片机
-
- 帖子: 32
- 注册时间: 2007-03-03 21:42
linux环境下学习51单片机
GNU/Linux环境下可以利用SDCC来编译C51程序,可以用USBASP来烧写AT89S52单片机,但需要另行购买下载线。
STC89C52RC用来学习单片机技术相对比较方便,可以直接使用串口烧写,对于没有串口的笔记本只要配置一条
USB转RS232的转接线就可以了,但STC只提供了Windows下的下载程序,这里给出一个能在Linux下使用的
STC89C52RC的串口ISP下载工具(非wine),是自由软件,开放源码,方便大家在Linux下学习单片机技术。
淘宝上所有的51开发板、试验板都只提供Windows的学习环境,而且大都集成盗版软件,
这里提供一个专门为Linux环境设计的51实验板套件(散件),欢迎大家选购
http://item.taobao.com/auction/item_det ... 5453587374
STC89C52RC用来学习单片机技术相对比较方便,可以直接使用串口烧写,对于没有串口的笔记本只要配置一条
USB转RS232的转接线就可以了,但STC只提供了Windows下的下载程序,这里给出一个能在Linux下使用的
STC89C52RC的串口ISP下载工具(非wine),是自由软件,开放源码,方便大家在Linux下学习单片机技术。
淘宝上所有的51开发板、试验板都只提供Windows的学习环境,而且大都集成盗版软件,
这里提供一个专门为Linux环境设计的51实验板套件(散件),欢迎大家选购
http://item.taobao.com/auction/item_det ... 5453587374
-
- 帖子: 102
- 注册时间: 2009-08-21 23:11
Re: linux环境下学习51单片机
怎么编译不了呢?提示出错``最先是./configure
然后是make `提示出错gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT gSTCISP-main.o -MD -MP -MF .deps/gSTCISP-main.Tpo -c -o gSTCISP-main.o `test -f 'main.c' || echo './'`main.c
main.c:25:21: error: vte/vte.h: 没有那个文件或目录
main.c: In function ‘create_MainWindow’:
main.c:365: warning: assignment makes pointer from integer without a cast
main.c:367: error: ‘VTE_ERASE_ASCII_BACKSPACE’ undeclared (first use in this function)
main.c:367: error: (Each undeclared identifier is reported only once
main.c:367: error: for each function it appears in.)
main.c: In function ‘on_button_program_clicked’:
main.c:671: warning: assignment discards qualifiers from pointer target type
main.c: In function ‘create_file_choose’:
main.c:817: warning: not enough variable arguments to fit a sentinel
make[2]: *** [gSTCISP-main.o] 错误 1
make[2]:正在离开目录 `/home/cainlee/下载/gSTC-ISP/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/cainlee/下载/gSTC-ISP'
make: *** [all] 错误 2
这事什么原因呢
然后是make `提示出错gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT gSTCISP-main.o -MD -MP -MF .deps/gSTCISP-main.Tpo -c -o gSTCISP-main.o `test -f 'main.c' || echo './'`main.c
main.c:25:21: error: vte/vte.h: 没有那个文件或目录
main.c: In function ‘create_MainWindow’:
main.c:365: warning: assignment makes pointer from integer without a cast
main.c:367: error: ‘VTE_ERASE_ASCII_BACKSPACE’ undeclared (first use in this function)
main.c:367: error: (Each undeclared identifier is reported only once
main.c:367: error: for each function it appears in.)
main.c: In function ‘on_button_program_clicked’:
main.c:671: warning: assignment discards qualifiers from pointer target type
main.c: In function ‘create_file_choose’:
main.c:817: warning: not enough variable arguments to fit a sentinel
make[2]: *** [gSTCISP-main.o] 错误 1
make[2]:正在离开目录 `/home/cainlee/下载/gSTC-ISP/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/cainlee/下载/gSTC-ISP'
make: *** [all] 错误 2
这事什么原因呢
- wean
- 帖子: 686
- 注册时间: 2007-04-23 14:47
- 系统: Gentoo
- 来自: 常熟
- 联系:
-
- 帖子: 32
- 注册时间: 2007-03-03 21:42
Re: linux环境下学习51单片机
libvte-dev包没装吧?你安装下试试。再不行就试试附件里编译好的。cain.lee 写了:怎么编译不了呢?提示出错``最先是./configure
然后是make `提示出错gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT gSTCISP-main.o -MD -MP -MF .deps/gSTCISP-main.Tpo -c -o gSTCISP-main.o `test -f 'main.c' || echo './'`main.c
main.c:25:21: error: vte/vte.h: 没有那个文件或目录
main.c: In function ‘create_MainWindow’:
main.c:365: warning: assignment makes pointer from integer without a cast
main.c:367: error: ‘VTE_ERASE_ASCII_BACKSPACE’ undeclared (first use in this function)
main.c:367: error: (Each undeclared identifier is reported only once
main.c:367: error: for each function it appears in.)
main.c: In function ‘on_button_program_clicked’:
main.c:671: warning: assignment discards qualifiers from pointer target type
main.c: In function ‘create_file_choose’:
main.c:817: warning: not enough variable arguments to fit a sentinel
make[2]: *** [gSTCISP-main.o] 错误 1
make[2]:正在离开目录 `/home/cainlee/下载/gSTC-ISP/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/cainlee/下载/gSTC-ISP'
make: *** [all] 错误 2
这事什么原因呢
- 附件
-
- gSTCISP_bin.zip
- gSTCISP
- (49.07 KiB) 已下载 3729 次
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 32
- 注册时间: 2007-03-03 21:42
Re: linux环境下学习51单片机
用openocd调过2410和LPC2468
要能用在C8051上就好了,不知道有没人尝试过,openocd好像还不支持
要能用在C8051上就好了,不知道有没人尝试过,openocd好像还不支持
-
- 帖子: 102
- 注册时间: 2009-08-21 23:11
Re: linux环境下学习51单片机
walnut 写了:libvte-dev包没装吧?你安装下试试。再不行就试试附件里编译好的。cain.lee 写了:怎么编译不了呢?提示出错``最先是./configure
然后是make `提示出错gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT gSTCISP-main.o -MD -MP -MF .deps/gSTCISP-main.Tpo -c -o gSTCISP-main.o `test -f 'main.c' || echo './'`main.c
main.c:25:21: error: vte/vte.h: 没有那个文件或目录
main.c: In function ‘create_MainWindow’:
main.c:365: warning: assignment makes pointer from integer without a cast
main.c:367: error: ‘VTE_ERASE_ASCII_BACKSPACE’ undeclared (first use in this function)
main.c:367: error: (Each undeclared identifier is reported only once
main.c:367: error: for each function it appears in.)
main.c: In function ‘on_button_program_clicked’:
main.c:671: warning: assignment discards qualifiers from pointer target type
main.c: In function ‘create_file_choose’:
main.c:817: warning: not enough variable arguments to fit a sentinel
make[2]: *** [gSTCISP-main.o] 错误 1
make[2]:正在离开目录 `/home/cainlee/下载/gSTC-ISP/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/cainlee/下载/gSTC-ISP'
make: *** [all] 错误 2
这事什么原因呢
现在装好了但是不知道怎么用额```新手

-
- 帖子: 32
- 注册时间: 2007-03-03 21:42
Re: linux环境下学习51单片机
装好后在终端里输入gSTCISP
软件的菜单里有简单的说明
如果你用的是USB转RS232的转接线,在软件启动之前就要把线插上,并且要保证装好了驱动
在软件的port里选择你的串口,比如"/dev/ttyS0"或"/dev/ttyUSB0"之类的
在软件的baudrate里选择你的下载波特率,USB转接的串口,波特率可能要低一点,一般可试下9600和2400,普通的串口应该到115200都没问题的
在File name里选择你要下载的文件,必须是bin格式的,hex的需要转换一下,可以用hex2bin的软件,网上能找到
在接好你的STC89C52RC后,先按下Download按钮,然后再给你的STC89C52RC上电,这和官方的STC-ISP的操作一样
最后就等提示信息了,下载成功会有提示的
软件的菜单里有简单的说明
如果你用的是USB转RS232的转接线,在软件启动之前就要把线插上,并且要保证装好了驱动
在软件的port里选择你的串口,比如"/dev/ttyS0"或"/dev/ttyUSB0"之类的
在软件的baudrate里选择你的下载波特率,USB转接的串口,波特率可能要低一点,一般可试下9600和2400,普通的串口应该到115200都没问题的
在File name里选择你要下载的文件,必须是bin格式的,hex的需要转换一下,可以用hex2bin的软件,网上能找到
在接好你的STC89C52RC后,先按下Download按钮,然后再给你的STC89C52RC上电,这和官方的STC-ISP的操作一样
最后就等提示信息了,下载成功会有提示的
-
- 帖子: 5
- 注册时间: 2009-10-11 15:58
Re: linux环境下学习51单片机
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 2.0.0 is required
./configure: line 3705: exit: but: numeric argument required
./configure: line 3705: exit: but: numeric argument required
本人使用kubuntu,请教如何解决
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 2.0.0 is required
./configure: line 3705: exit: but: numeric argument required
./configure: line 3705: exit: but: numeric argument required
本人使用kubuntu,请教如何解决
- Duron
- 帖子: 54
- 注册时间: 2007-02-10 22:48
Re: linux环境下学习51单片机
一直提示
We are trying to connect to your MCU ...
就没反应了
windows下载没问题
STC89C52RC
We are trying to connect to your MCU ...
就没反应了
windows下载没问题
STC89C52RC
居然有人告诉我:“你装的Linux 是盗版”。
- ymp
- 帖子: 90
- 注册时间: 2008-11-06 12:42
Re: linux环境下学习51单片机
驱动如何安装呀。我安装了之后还是不知道怎么弄。可不可以详细讲以下怎使用。端口怎么选,驱动怎么装。walnut 写了:装好后在终端里输入gSTCISP
软件的菜单里有简单的说明
如果你用的是USB转RS232的转接线,在软件启动之前就要把线插上,并且要保证装好了驱动
在软件的port里选择你的串口,比如"/dev/ttyS0"或"/dev/ttyUSB0"之类的
在软件的baudrate里选择你的下载波特率,USB转接的串口,波特率可能要低一点,一般可试下9600和2400,普通的串口应该到115200都没问题的
在File name里选择你要下载的文件,必须是bin格式的,hex的需要转换一下,可以用hex2bin的软件,网上能找到
在接好你的STC89C52RC后,先按下Download按钮,然后再给你的STC89C52RC上电,这和官方的STC-ISP的操作一样
最后就等提示信息了,下载成功会有提示的
Archlinux
您的账号在另一地点登陆,您被迫下线。
您的账号在另一地点登陆,您被迫下线。
-
- 帖子: 32
- 注册时间: 2007-03-03 21:42
Re: linux环境下学习51单片机
这个提示是在尝试通过串口和你的单片机通讯,这时需要让你的单片机冷启动,关电源,然后上电Duron 写了:一直提示
We are trying to connect to your MCU ...
就没反应了
windows下载没问题
STC89C52RC
如果不出现下载提示,也有可能你的串口在linux下有问题,尤其是USB转串口,你可以尝试调底波特率,但340的芯片不要用1200,用2400,当然,前提是你选对了你的串口设备
也有一种可能是你用的外部晶振不在支持范围内,目前只支持有4M 6M 8M 11.0592M 12M,其他暂时没空添加:P