Author Archives: 美梦成真

为mini2440开发板建立Keil MDK/Jlink开发调试环境

新建Keil工程,device选择三星的s3c2440。询问”是否将启动代码拷贝到工程目录”,选择是。

在工程配置的Target标签页中做如下配置:

确定后编写主函数并编译工程。

假如没有错误,打开工程目录下的”工程名.sct”文件,就会发现ROM1的0x30000000就是程序的入口地址,对应启动代码中的”RESET”。

安装Jlink驱动后,在Keil的debug标签中选择”J-link/J-Trace”作为调试工具。在Initialization File文本框中选择调试的初始化文件。

打开初始化文件,将文件最后的”LOAD .\XXX.axf”,中的XXX替换为自己工程目录下的axf文件名。

在Utilities标签页中,选择J-LINK/J-TRACE作为Flash Programming工具,并且将”Update Target before Debugging”前的复选框取消。

编译工程,成功后点击debug按钮就可以联调了。

网络最热的ARM|Linux|wince|ucos|经典资料完整版(转载)

嵌入式入门篇:
什么是嵌入式系统                      http://www.helloarm.com/Embedded-Learn/58.htm
嵌入式资深工程师白话说”嵌入式”       http://www.helloarm.com/Embedded-Learn/52.htm
嵌入式系统的学习途径与基本方法(硬件) http://www.helloarm.com/Embedded-Learn/50.htm
如何学习嵌入式(软件)                http://www.helloarm.com/Embedded-Learn/51.htm          
ARM入门学习方法                         http://www.helloarm.com/Embedded-Learn/46.htm
嵌入式linux学习步骤                   http://www.helloarm.com/Embedded-Learn/48.htm
嵌入式学习方法 关于ARM+linux          http://www.helloarm.com/Embedded-Learn/47.htm
我的嵌入式之路(必看必看!)          http://www.helloarm.com/Embedded-Learn/45.htm

ARM学习思路
什么是ARM                            http://www.helloarm.com/ARM-knowledge/59.htm
ARM77与ARM9的区别                      http://www.helloarm.com/ARM-knowledge/61.htm
ARM中C和汇编混合编程及示例             http://www.helloarm.com/ARM-knowledge/62.htm
ARM 开发软件及实用工具介绍             http://www.helloarm.com/ARM-knowledge/60.htm
ADS集成开发环境详细介绍                http://www.helloarm.com/ADS-Learn/113.htm
ads调试工程的设置                      http://www.helloarm.com/ADS-Learn/112.htm

嵌入式操作系统学习
七款嵌入式Linux操作系统简介          http://www.helloarm.com/Linux/193.htm
使用虚拟机嵌入式Linux开发前的必要准备  http://www.helloarm.com/Linux/183.htm
Linux启动的简析                      http://www.helloarm.com/Linux/210.htm
Linux上的C/C++编译器gcc/egcs详解    http://www.helloarm.com/Linux/188.htm
arm linux 下最小的hello world程序    http://www.helloarm.com/Linux/123.htm
Linux下各种压缩包的解压方法          http://www.helloarm.com/Linux/177.htm
linux内核裁剪的具体过程和方法       http://www.helloarm.com/Linux/187.htm
Linux 系统内核的调试                http://www.helloarm.com/Linux/219.htm
基于嵌入式Qt的车载GUI平台的设计       http://www.helloarm.com/Linux/184.htm
在U-Boot中实现对Yaffs镜像的支持       http://www.helloarm.com/Linux/205.htm
ARM Linux根文件系统的制作             http://www.helloarm.com/Linux/217.htm

进一步学习Linux
arm2410的Linux系统移植——vivi、内核、根文件系统的编译 http://www.helloarm.com/Linux/120.htm
在s3c2410开发板上移植u-boot1.1.4                         http://www.helloarm.com/Linux/127.htm
NFS for Linux(网络文件系统)                            http://www.helloarm.com/Linux/171.htm
Linux 下串口编程入门                                     http://www.helloarm.com/Linux/180.htm
Makefile经典教程                                        http://www.helloarm.com/Linux/166.htm
linux Shell编程入门 实例讲解详解                         http://www.helloarm.com/Linux/173.htm
嵌入式Linux下NAND存储系统的设计与实现                   http://www.helloarm.com/Linux/121.htm

ARM平台上蓝牙协议栈Bluez的移植使用和配置                http://www.helloarm.com/Linux/122.htm
Linux液晶屏驱动开发[1]                                  http://www.helloarm.com/Linux/175.htm

windows CE学习
WinCE 菜鸟问答                                        http://www.helloarm.com/Wince/111.htm
Windows CE嵌入式操作系统的优势                         http://www.helloarm.com/Wince/213.htm
WinCE 编程的十点忠告                                  http://www.helloarm.com/Wince/160.htm
浅谈WinCE应用程序的可移植性                            http://www.helloarm.com/Wince/78.htm
Windows CE5.0 I/O操作基础(1)                            http://www.helloarm.com/Wince/76.htm
Explorer注册表键值归纳                                  http://www.helloarm.com/Wince/110.htm
WinCE 5.0 virtual memory space                         http://www.helloarm.com/Wince/138.htm
关于EVC中的预编译头文件.pch                            http://www.helloarm.com/Wince/146.htm
WinCE下对文件的基本操作                               http://www.helloarm.com/Wince/72.htm
WinCE 在CF卡上实现冷启动自动保存注册表                http://www.helloarm.com/Wince/75.htm
WinCE 驱动开发学习笔记                                  http://www.helloarm.com/Wince/73.htm
让程序在WinCE系统启动时自动运行-两种方法                http://www.helloarm.com/Wince/74.htm

UCOS-II操作系统
UC/OS和UCLinux比较                                     http://www.helloarm.com/ucos/98.htm
μC/OS-II的实时性能分析                               http://www.helloarm.com/ucos/161.htm
μC/OS-II的多任务系统实时性分析与优先级分配          http://www.helloarm.com/ucos/90.htm
μC/OS-II下通用驱动框架的设计与实现                   http://www.helloarm.com/ucos/103.htm
UC/OS II多任务切换例程                               http://www.helloarm.com/ucos/96.htm
基于μC/OS-II的时间片调度法设计                      http://www.helloarm.com/ucos/94.htm
ucos II+ucGUI+s3c2410+LCD+触摸屏整合                   http://www.helloarm.com/ucos/89.htm

UCOS移植篇
uC/OS-II实时操作系统在嵌入式平台上进行移植的方法与技巧  http://www.helloarm.com/ucos/86.htm
基于Nios软核CPU的uC/OS-II和LwIP移植                   http://www.helloarm.com/ucos/85.htm
μC/OS-II在Cortex-M3系列单片机上的移植                http://www.helloarm.com/ucos/92.htm
uC/OS II在S3C2410上的移植                            http://www.helloarm.com/ucos/79.htm

经典案例分析
实时内核μC/OS-II下的网络监控系统的设计             http://www.helloarm.com/ucos/99.htm
基于uC/OS-II的MP3文件播放系统设计                   http://www.helloarm.com/ucos/82.htm
基于uC/OS-II的智能窗系统设计                         http://www.helloarm.com/ucos/83.htm
uC/OS-II在电能计量电表中的应用研究                   http://www.helloarm.com/ucos/80.htm

跳出去

晚我一年进单位的同事居然跳槽了,而且很突然。真是让我惊讶啊,不得不说他比我走的更快。联想到自己的经历和单位的现状,真是让人感慨。为什么我就无法踏出那一步呢。

ARM菜鸟的学习笔记之开发平台搭建

ARM的开发平台主要有ADS、IAR和Keil,ADS很古老,而且据说入门有点难。试用了一下IAR,但是和Proteus联调很不稳定,最后还是选择了Keil和Proteus的组合。

Keil的版本我使用了MDK-ARM4.1版本,Proteus的版本为7.7SP2。两个软件安装完毕后,安装Proteus与Keil的联调驱动。但是安装后却无法在Keil中选择使用Proteus作为调试工具。这时打开Keil安装目录下的TOOLS.ini文件,将[ARM]大项中的最末两行拷贝到[ARMADS]大项中。

此时保存文件,重新打开工程,但是在调试选项中还是没有找到Proteus。

再次打开TOOL.ini文件,注意[ARMADS]下选中的那几行。

根据注释,Keil是根据此配置文件对ARM7/9、Cortex-M和Cortex-R4三中系列的芯片分别使用不同的调试器。而ARM7/9系列项中没有Proteus的标识TDRV12,于是将TDRV12添加到ARM7/9项的括号中,见下图:

完成后保存文件,重新打开工程,可以选择Proteus为调试器了。

此时尝试调试工程,但是程序却假死了。原来还需对Proteus调试器做一些设置。

点”Proteus VSM Simulator”右边的”Setting”按钮,在弹出的对话框中做如下设置,

最后在Proteus的Debug菜单下选中”Use Remote Debug Monitor”,即可顺利调试了。

ARM菜鸟的学习笔记——之uC/OS-ii的移植

使用网上流传较广的周立功的模板,移植还是比较顺利的。

我在WordPress安家啦

O(∩_∩)O哈哈~,兔年大吉啊

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!