ubuntu下SiLabs EC3调试C8051F 单片机
时间:2011-05-20 来源:Darwin
一直以来都想把工作的环境完全的换到Linux下面,当然我现在用的发行版是Ubuntu 10.04.
主要还是做单片机的开发.Silicon Labs公司的C8051F系列是一款集成度很高,片上资源丰富的单片机.下面我是我的笔记:
--目前还是有问题,我正在读源码,希望可以解决.
1.ec2drv http://ec2drv.sourceforge.net/
Richy已经好像不再维护这个项目了.SVN中的最后更新在两年前.
1.1 安装ec2drv
apt-get install autoconf libtool libboost-dev libusb-dev libreadline5-dev subversion libboost-regx-dev
svn co https://ec2drv.svn.sourceforge.net/svnroot/ec2drv/ec2drv/trunk ec2drv cd ec2drv
Before building ec2drv, we need to run this command which performs the various GNU build system actions.
make -f Makefile.cvs
Now we can do the usual build stuff. Note again that make install must be run as root.
./configure
修改libtool文件,在
ECHO="echo"
一行下添加
echo="echo",
make,出错,
添加 #include <cstdio> 到下面的文件中去,
src/newcdb/cmdcommon.cpp
src/newcdb/cmddisassemble.cpp
src/ec2tools/ec2test-any.cpp
src/debug-core/breakpointmgr.cpp
src/debug-core/target.cpp
src/debug-core/contextmgr.cpp
src/debug-core/symtab.cpp
src/debug-core/symbol.cpp
src/debug-core/targets51.cpp
src/debug-core/targetsilabs.cpp
src/debug-core/symtypetree.cpp
然后 make make install.
一个俄国人的关于编译出错的说明 http://tuxotronic.org/wiki/silabs-ec2-driver-linux