主题 : 在vivi中如何调试程序 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 2346
精华: 0
发帖: 38
金钱: 340 两
威望: 294 点
综合积分: 76 分
注册时间: 2008-11-12
最后登录: 2019-05-09
楼主  发表于: 2009-05-16 00:49

 在vivi中如何调试程序

主要是怎么使用 printf以及编译过程?
在uboot上使用不了printf,编译出来的代码执行结果不对
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-17 10:23
uboot中怎么用printf,vivi中就怎么用。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-05-17 10:42
至于编译vivi的步骤,这里有一个你可以参考:(假设你的2.5.93版本的arm-linux-gcc在/usr/local/arm/2.95.3/bin/arm-linux-gcc)
$cp <config file for your board> .config
$make ARCH=arm CROSS_COMPILE=/usr/local/arm/2.95.3/bin/arm-linux- oldconfig
$make ARCH=arm CROSS_COMPILE=/usr/local/arm/2.95.3/bin/arm-linux- all
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."