主题 : 2440 启动代码详解 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 1154
精华: 1
发帖: 4
金钱: 60 两
威望: 6 点
贡献值: 0 点
综合积分: 28 分
注册时间: 2008-07-27
最后登录: 2009-04-11
楼主  发表于: 2008-07-27 17:33

 2440 启动代码详解

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
希望对2440的初学者有点帮助!
附件: myled0321.rar (126 K) 下载次数:3389
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-07-27 21:57
谢谢,我想代码中的注释应该会对大家都很有帮助
"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 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-08-01 07:18
引用第5楼myloveos于2008-07-31 18:42发表的  :
多谢注释,但是个人觉得这个启动代码本身让人看了犯迷糊,一个Demo程序干什么搞这么复杂

如果你仔细看过源代码的话,你会发现控制LED本身并不复杂,复杂的是要对CPU做上电初始化,而这部分代码才是这个程序真正有用的地方。事实上,这是一个标准的bootloader。
"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 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-08-05 08:42
引用第9楼netivy于2008-08-04 22:01发表的  :
每部分都有需要学习的东西,真正成为自己的才是KEY。

说的好!国内搞嵌入式Linux的问题就在于只会死读书,不知道如何把书上的知识转化为自己的
"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 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-08-23 22:35
引用第13楼luotiancheng于2008-08-23 18:37发表的  :
其实我想问一句,关于ARM的许多启动代码都必须要看明白吗

不,事实上大部分人不需要看明白
"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 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2008-09-21 22:03
引用第22楼he119于2008-09-19 09:39发表的  :
不过很多人都不关心!

如果你关心的话,提出具体的问题来,别扔个程序出来就完事了,没有人有兴趣去帮你分析代码的。
"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 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2008-09-30 17:13
那是ADS管理工程的问题,你可能需要重新告诉ADS这个工程包含哪些文件
"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."