微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > msp430几种不同开发平台的对比

msp430几种不同开发平台的对比

时间:11-25 来源:互联网 点击:

0x15000+0x200->

OSTCBCur->

${NAME}.elf ##################反汇编,生成*.lst文件,其中

msp430-objdump -dSt $^ >$@ ##################这个文件包含了c源码,汇 ##################编原码

download-jtag: all

msp430-jtag -e ${NAME}.elf

download-bsl: all #####这里的下载工具也是bsl,和TinyOS的tos-bsl类似

msp430-bsl -e ${NAME}.elf

其中,*.a43为TI-Text格式, *.hex为Intel-hex格式.

IAR_MSP430

编辑器

IAR Embedded Workbench IDE一个瑞士开发的商用软件的,价格好象在6500.00;目前个人感觉相比开源的MSPGCC也没太大的优势。

工程管理

一个“.eww ”即为一个工程,

开发调试环境

编译、运行和下载

编译:调用“icc430.exe”编译器和已经设定好的一些参数,包括指定的动态库文件,输出文件所在的目录,具体的代码好下:

icc430.exe -I D:Program FilesIAR SystemsEmbedded Workbench 4.0430INC

-I D:Program FilesIAR SystemsEmbedded Workbench 4.0430INCDLIB

-o C:Documents and SettingsAdministratorMy DocumentsDebugObj

-z3 --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --debug -e --double=32

-D_DLIB_CONFIG_FILE=D:ProgramFilesIARSystemsEmbeddedWorkbench4.0430LIBDLIBdl430fn.h

D:Program FilesIAR SystemsEmbedded Workbench 4.0430FET_examplesfet140C-sourcefet140_1.c

运行上面的命令之后,在“..obj”目录下生成了“*.r43”文件。(The Obj directory is the destination directory for the object files from the compiler and the assembler. These files have the extension r43 and will be used as input to the IAR XLINK Linker.)

链接:这里调用的是“xlink.exe”,具体的代码好下:

xlink.exe C:Documents and SettingsAdministratorMy DocumentsDebugObjfet140_1.r43

-o C:Documents and SettingsAdministratorMy DocumentsDebugExeSMC4200.d43 –I D:Program FilesIAR SystemsEmbedded Workbench 4.0430LIB

-f D:Program FilesIAR SystemsEmbedded Workbench 4.0430CONFIGlnk430F149.xcl

-f D:Program FilesIAR SystemsEmbedded Workbench 4.0430configmultiplier.xcl -D_STACK_SIZE=50

-rt D:Program FilesIAR SystemsEmbedded Workbench 4.0430LIBDLIBdl430fn.r43

-e_PrintfLarge=_Printf

-e_ScanfLarge=_Scanf

-D_HEAP_SIZE=50

-s __program_start

##### -o This option creates a UBROF output file, with a DE>d43DE> filename extension, to be used with the IAR C-SPY Debugger. (The Exe directory is the destination directory for the executable file. It has the extension d43 and will be used as input to the IAR C-SPY Debugger. Note that this

directory will be empty until you have linked the object files.) > P66

下载:

在下载部分,IAR没有给出很详细的,

总结:

下面是和IAR、Jennic及TinyOS平台做的对比:

开发工具包

IAR

Jennic

TinyOS

MSPGCC

compiler

编译器

C Compiler

icc430.exe

ba-elf-gcc.exe

ncc.exe

msp430-gcc.exe

msp430-gcc.exe

C++ Compiler

ba-elf-g++.exe

msp430-g++.exe

Linker

链接器

动态库的链接器

xlink.exe

ba-elf-ld.exe

msp430-ld.exe

静态库的链接器

?

ba-elf-ar.exe

msp430-ar.exe

Debugger

ba-elf-gdb.exe

msp430-gdb.exe

make

Make.exe

Make.exe

Make.exe

Download file

?

*.bin

*.hex.out-1 (tmote)

*.elf *.hex *.txt

downloader

tos-bsl

download-bsl

AVRGCC、ARMGCC和MSPGCC

IAR

ü application and library projects.

ü The Obj directory is the destination directory for the object files from the compiler and the assembler. These files have the extension r43 and will be used as input to the IAR XLINK Linker(> P69)

嵌入式开发,C语言不可或缺。优秀的编译器直如倚天屠龙。读书时,用过MSP430,编译器为IAR(盗版),code有2K限制。为此,曾攻读过专门以此器为背景的C语言书(蓝封面,北航社,忘其名)。此器,功能强大,调试方便,硬件寄存器皆有显示。窥430之门径,离Hello World之苦海,伴我几易寒暑,初踏嵌入式之地者,正是此器。

后,一直未曾用430。前些天,某任务要用。我重拾往日之事。IAR终为不完全盗版,破解太烦。懒,不愿做。放狗搜,见mspgcc,版本号:20081230。与gcc一脉传承,想必不错。试用几日,感觉这才是利器

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top