13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>If you specify a full processor name (or its ID), the control program passes the option -D__PROC_id __to C compiler and the linker. id is the 'id' attribute belonging to the processor found in processors.xml,in uppercase. The control program also passes the macros defined with the 'linker_macros' propertyof the processor found in the processors.xml to the linker (<strong>for</strong> example,-D__DEVICE_LSL_FILE=stm32f2xx.lsl).Assembly code can check the value of the option by means of the built-in function @CPU(). Architecture<strong>ARM</strong>v7-M only supports the Thumb-2 instruction set, i.e. it has no <strong>ARM</strong> execution state.ExampleAfterccarm --cpu="STM32F205RB" -v -t test.cthe control program will call the tools as follows:carm -C<strong>ARM</strong>v7M -D__PROC_STM32F205RB__ -o test.src test.casarmt -C<strong>ARM</strong>v7M -o test.obj test.srclkarm test.obj -o test.abs -C<strong>ARM</strong>v7M -D__PROC_STM32F205RB__-D__DEVICE_LSL_FILE=stm32f2xx.lsl -D__FLASH_SIZE=128k -D__SRAM_SIZE=64k--map-file -lcthumb -lfpthumb -lrtthumbRelated in<strong>for</strong>mationControl program option --cpu-list (Show list of processors)C compiler option --cpu (Select architecture)Assembler option --cpu (Select architecture)Control program option --processors (Read additional processor definitions)Control program option --tasking-sfr (Include CMSIS SFR file)Assembly function @CPU()592

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!