lpc1000 ecosystem tools, software and...
TRANSCRIPT
Company Confidential
LPC1000 ecosystem –
Tools, Software and Support
BL Microcontrollers, BU HPMS, Greater China
Nov. 2010
Company Confidential 2
LPC1100 – 像8位单片机一样容易使用
less than 60 Thumb instructions
Upward compatible with Cortex-M3, Binary compatible
with ARM7 processors
ISR nesting, priority, stacking is automatic
C code is enough
Sample code bundle
Product Architecture # of Instr. Code width
HC08 CISC 140 8
AVR RISC 118 8
MCS-51 CISC 111 8
M16C CISC 91 16
PIC RISC 58 16
Cortex-M0 RISC 56 16
Company Confidential 3
ARM内核之间的兼容性
Thumb®
ARM7 ARM9 Cortex-A9Cortex-R4Cortex-M3Cortex-M0
Thumb instruction set upwards compatibility
CORTEX-M3
CORTEX-M0
ADC
BL
ADD ADR
B
BIC
CMN CMP EOR
LDMLDR LDRB
LDRH LDRSH
LSL LSR MOV
MUL MVN
POP PUSH ROR
SBC STM
STR STRB STRH
SUB
LDRSB
SVC TST
AND ASR
ORR
RSB
IT
ADC ADD ADR AND ASR B
BFC BFI BIC CBNZ CBZCLREX
CLZ
CMN
CMP DBG
CDP
EOR LDC
LDMIA LDMDB LDR LDRB
LDRBT LDRD LDREX LDREXB
LDREXH LDRH LDRHT LDRSB
LDRSBT LDRSHLDRSHT LDRT
LSL LSRMCR
MCRR MLA
MLS
MOV MOVT
MRC MRRC MUL MVN
NOP ORN ORR PLD
PLDW PLI POP PUSH
RBIT REV REV16 REVSH
ROR RRX RSB SBC
SBFX SDIV SEV SMLAL
SMULL SSAT STC STMIA
STMDB STR STRB STRBT
STRD STREX STREXB STREXH STRH STRHT STRT
SUB SXTB SXTH TBB TBH TEQ TST
UBFX UDIV UMLAL UMULL USAT UXTB UXTH
WFE WFI YIELD
WFI YIELD
BKPT BLX
BX CPS
DMB
ISB
MRS
MSR
NOP REV
REV16 REVSH
SEV SXTB
SXTH UXTB
UXTH WFE
DSB
Present in ARM7TDMI
Company Confidential 4
MCU 开发工具解决方案
NXP’s Low cost
Development Tool Chain
Rapid Prototyping
Online Tool
Traditional Feature Rich
Tools (third party)
Company Confidential 5
恩智浦的低成本开发工具平台
免费的 Eclipse-based IDE
评估阶段 产品开发
LPC1768 boards are now
shipping from eDemoboards.
LPCXpresso now has board
support across the Cortex
platform!
Already more than 15,000
boards shipped and over
1000 community members
on the LPCXpresso forum
LPCXpresso is coming to
Linux in September
“LPCXpresso 将改变恩智浦工具支持的未来前景”
入门板
Company Confidential 8
LPCXpresso 网上资源
www.nxp.com/lpcxpresso– Main page
www.nxp.com/lpcxpresso-support– NXP examples page, schematics and FAQ
www.nxp.com/lpczone– Live training modules
www.nxp.com/lpcxpresso-forum– Support forum for LPCXpresso supported by
NXP and Code Red (main support destination)
www.code-red-tech.com/lpcxpresso– LPCXpresso IDE downloads and
Code Red knowledgebase
www.embeddedartists.com/lpcxpresso– Base board schematics and even more example projects
Company Confidential 9
LPCXpresso-CN 开发板
USB接口连接PC
On-board仿真器支持JTAG/SWD两种调试方式
可分离式的仿真器/目标板设计,支持扩展设计
仿真器部分采用LPC1343,目标板部分采用LPC1114
目标板预留所有I/O和外设扩展连接,并与LPCXpresso Base Board完全兼容
功能LED指示(4 LEDs)
每套硬件允许客户升级IAR CM0编译器到32k一次
仿真器 LPC1114目标板
Company Confidential 11
便捷的原形设计工具 - “mbed”
入门级在线编译器 恩智浦是这一在线工具项目的第一家ARM合作伙伴
低成本评估板
http://mbed.org/esc
入门级在线编译器– 无需安装: 基于浏览器的IDE(像 “GMail”)
– 可立即编译例程或开始写自己的程序
– 后台为一流的RealView编译器支持
即插即用的USB插拔编程接口– 无需安装: 复制二进制文件到硬盘即可开始编程
– 无需驱动程序,可工作于Windows, Linux, Mac环境
– 链接至网站,可以验证注册
高集成度的硬件抽象层驱动库
Company Confidential 12
你的第一个程序 – Hassle-Free Evaluation
Compile a program online
No Installation!
“Hello World!” in 60 seconds
Remove board
from the box
Up pops a USB Disk
linking to website Plug it in…
Save to the board and
you’re up and running
Company Confidential 13
Mbed 伴你成功
13
Already more than 10,000 boards
shipped!
More and more boards keep
popping up!– http://www.skpang.co.uk/catalog/product
_info.php?products_id=741
– http://www.coolcomponents.co.uk/catalo
g/product_info.php?products_id=528
Design competition upcoming– Worldwide coverage
– 4000 free boards available
– Launch September 2010
Company Confidential 15
关于CMSIS
The ARM® Cortex™ Microcontroller Software Interface Standard (CMSIS) is a vendor-independent hardware abstraction layer for the Cortex-M processor series.
The CMSIS is defined in close co-operation with various silicon and software vendors.
The CMSIS enables consistent and simple software interfaces to the processor for interface peripherals, real-time operating systems, and middleware, simplifying software re-use, reducing the learning curve for new microcontroller developers and reducing the time to market for new devices.
The standard is fully scalable to ensure that it is suitable for all Cortex-M processor series microcontrollers from the smallest 8 KB device up to devices with sophisticated communication peripherals such as Ethernet or USB-OTG.
Latest formal release: V1.30
http://www.onarm.com/download/download395.asp
Company Confidential 17
LPC1000 CMSIS设计原则
No cross-calling between different driver modules. – Within drivers, if one driver needs to use the functionality of another
module, it will read/write the related registers directly instead of calling the
interface functions from the driver of that module. It aims to minimize the
code size at the expense of portability.
No register read/write in application codes. – All register access is wrapped up in the driver API. Within application
examples, if one example needs to use the functionality of another module,
it will call the interface functions of that module. It means that user will not
read/write any registers directly in the application code.
Company Confidential 20
完整的支持平台
提供广泛的用于各行业的
各种半导体器件
产品定义本地化
强大的本地应用团队– 系列化的开发平台
– 众多可选的开发工具
– 参考设计和软件支持
– 培训和技术支持
不止是芯片,更是全方位的支持平台!
Company Confidential 21
从哪里开始?
www.nxp.com/microcontrollers
– MCU homepage
groups.yahoo.com/group/lpc1000/– 雅虎LPC1000论坛
www.nxp.com/lpczone
– Product updates and training
www.nxp.com/lpcxpresso
www.mbed.org
21