Tutorial
2.5
BUILDING THE CODE
In this project, the code is built in two stages, as shown in Figure 2-9. First the source
files are compiled into object files, then the object files are linked.
FIGURE 2-9:
CODE BUILDING PROCESS
dsPICDEM.net Tutorial.c
LCD display.c
delay.c
Compile
STAGE ONE
COMPILE
Compile
STAGE ONE
COMPILE
Compile
dsPICDEM.net Tutorial.o
STAGE TWO
LINK
LCD display.o
Link
delay.o
MyTutorial.cof
MyTutorial.hex
The MyTutorial.hex output file contains the data necessary to program the device.
The MyTutorial.cof output file contains additional information that lets you debug
the code at the source code level.
Before building, there are compiler and linker settings that must be specified. These
settings indicate where to find the C library files and where to reserve space for the
extra debug code when the MPLAB ICD 2 (In-Circuit Debugger) is used.
2.5.1
Set Project Build Options
The tutorial project does not explicitly use any libraries, but the C compiler startup
library code is always automatically linked into the project. Use the Project>Build
Options>Project menu to specify the location of the library files as shown in
? 2004 Microchip Technology Inc.
DS51471A-page 19
相关PDF资料
DM300014 BOARD DEMO DSPICDEM 1.1 GEN PURP
DM300016 BOARD DEMO DSPICDEM STARTER
DM300017 BOARD DEMO DSPICDEM STARTER
DM300020 BOARD DEV DSPICDEM MC1 MOTORCTRL
DM300021 MODULE PWR DSPICDEM MC1H HV 3PHS
DM300022 MODULE PWR DSPICDEM MC1L LV 3PHS
DM320002 BOARD EXPANSION PIC32 I/O
DM320003-2 KIT EVAL PIC32 USB II STARTER
相关代理商/技术参数
DM300014 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 1.1 GP RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300015 功能描述:KIT DESIGN W/DM300014 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:*
DM300016 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM Starter RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300017 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 28P Starter RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300017 制造商:Microchip Technology Inc 功能描述:Microcontroller Development To
DM300018 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 2 Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300018 制造商:Microchip Technology Inc 功能描述:DEMO BOARD ((NW))
DM300019 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 80L Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: