ARM7/AT91SAM7 Release
IAR Embedded Workbench
Release consists of the RTOS sources and three sample projects - see
Release description for details. Each sample located in separate
folder. Structure of test project folder (folders are in brackets '[]'):
[Config] - linker scripts and other utilities
[Exe] - executable product[s]
[List] - listings and other temporary text files
[Obj] - objects and other intermediate files
[settings] - IAR IDE auxiliary files
[Src] - test project sources
slon.ewd - IAR IDE auxiliary file
slon.ewp - IAR IDE project
slon.eww - IAR IDE workspace
slon is test project name.
Structure of the RTOS folder:
scmRTOS
Common - common RTOS sources
ARM7 - portable part
See Distribution section and below about release using manners.
There is only one way provided to build any sample - IAR IDE.
Just launch IDE, open appropriate workspace (*.eww file), choose project target (RAM/Flash),
and build the project.
Default chip type, the sample project is targeted for is AT91SAM7S64. To alter chip type, three
settings has to be changed:
- Project->Options->General Options->Target->Device
- Project->Options->C/C++ Compiler->Preprocessor->Defined symbols (consult device.h for appropriate value)
- Project->Options->Assembler->Preprocessor->Defined symbols (consult device.h for appropriate value)
If user want to use his own build system he has to specify the following
command-line options for various tools:
-DAT91SAM7S64 (or another suitable AT91SAM7 chip type, consult device.h)
--cpu ARM7TDMI
--fpu None
-r
-OObj
-LList
-ISrc
-I..\scmRTOS\Common
-I..\scmRTOS\ARM7
-I$TOOLKIT_PATH$\arm\INC
-e
--eec++
-s9
-DAT91SAM7S64 (or another suitable AT91SAM7 chip type, consult device.h)
-lCN List
-o Obj
--debug
--cpu_mode thumb
--endian little
--cpu ARM7TDMI-S
--stack_align 4
--interwork
--fpu None
--dlib_config $TOOLKIT_PATH$\arm\LIB\dl4tptinl8n.h
-ISrc
-I$TOOLKIT_PATH$\arm\INC\
-I../scmRTOS/Common
-I../scmRTOS/ARM7
-s __program_start
-r
-xmseo
dl4tptinl8n.r79
-o Exe\slon.d79
-l List\slon.map
-I $TOOLKIT_PATH$\arm\LIB
-f Config\AT91SAM7_FLASH.xcl (or -f Config\AT91SAM7_RAM.xcl)
-Osimple-code=Exe\slon.sim
Note
where $TOOLKIT_PATH$ - path to folder with toolkit installed.
This release supports all AT91SAM7 devices, supported by version 4.30 of IAR EWARM. If user
has modern version of compiler and wants to use other AT91SAM7 family device, two files has to be
changed: device.h in Src folder and OS_Target_core.h in scmRTOS/ARM7 folder. Contence of those
files is simple enought.