78K0/Fx2 – CAN it!
14. Sample programs
14.1 General Introduction
ach of the sample programs is located in a single directory, which will be called main-directory of the
E
sample. This main directory of each sample contains the complete project inclusive all output files of the
development tool. The workspace file “
78K0_CANit.eww
” is located on top of the sample program
directories. All sample programs use the same directory structure:
AD Converter Demonstration
78K0/FF2 project and output files
Debug
debug output files for IAR C-SPY debugger
inc
C header files
Release
release output files, i.e. Intel HEX file
settings
configuration files, IAR Embedded Workbench
source
C source files
xcl
Linker control file
ADC_demo.dep
dependency information file, IAR Embedded Workbench
ADC_demo.ewd
project setting file, IAR C-SPY debugger
ADC_demo.ewp
project file, IAR Embedded Workbench
CAN Demonstration
78K0/FF2 project and output files
Reaction Time Measurement
78K0/FF2 project and output files
Timer Demonstration
78K0/FF2 project and output files
UART Demonstration
78K0/FF2 project and output files
78K0_CANit.eww
workspace file, IAR Embedded Workbench 78K0/78K0S
Table 21: Example directory structure
The main directory contains only the pro
Embedded Workbench 78K0/78K0S.
/source
and the
/inc
directory contains the header files. The
xcl
directory contains the linker control file of the 78K0/FF2 device. Each sample project uses two targets.
ne target is the “Debug” (directory
/Debug
) that holds all information for debugging purpose and the other
one the “Release” target (directory
/Release
) contains the programmable file, i.e. the Intel HEX file, for
programming the 78K0/FF2 internal FLASH memory.
All output files of the development tools for the corresponding target are generated in the directories
/Debug
and
/Release
.
For details of using the IAR Embedded Workbench and the IAR C-SPY debugger please refer to the “78K
IAR Embedded Workbench IDE User Guide”.
ject files for the IAR Systems
All source files are located in the directory
/
O
77