Example: air traffic controller

프로젝트옵션설정(1) E W AVR - mvtool.co.kr

Embedded WorkbenchAVR (1)1. Project -> Option -> General OptionsGeneral Options General Options TargetTarget IAR compiler . Processor configurationProcessor configuration V0~ V6 Code/ Data Memory , compiler . User , . V Stack, Heap XCL . V 6 40 . , XCL . Ex) 8535 SRAM(512 byte), Code (8K) -> V1, Max 64 Kbyte data, 8 Kbyte code Enhanced coreEnhanced core Hardware Multiplier . System Configuration XCL Heap Configuration System . EnableEmbedded WorkbenchAVR (1_2)2. Project 2. Project --> Option > Option --> General Option > General Option --> Output / Library Configuration > Output / Library Configuration OutputOutput Output files.

Embedded WorkbenchAVR 무료강의 www.mvtool.co.kr EWAVR 5.1x–프로젝트옵션설정(1) 1. Project -> Option -> General Options General Options –Target은IAR Compiler 를사용프로세서에맞추는가장중요한초기화과정이다.

Tags:

  Compiler, Mvtool, Iar compiler

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of 프로젝트옵션설정(1) E W AVR - mvtool.co.kr

1 Embedded WorkbenchAVR (1)1. Project -> Option -> General OptionsGeneral Options General Options TargetTarget IAR compiler . Processor configurationProcessor configuration V0~ V6 Code/ Data Memory , compiler . User , . V Stack, Heap XCL . V 6 40 . , XCL . Ex) 8535 SRAM(512 byte), Code (8K) -> V1, Max 64 Kbyte data, 8 Kbyte code Enhanced coreEnhanced core Hardware Multiplier . System Configuration XCL Heap Configuration System . EnableEmbedded WorkbenchAVR (1_2)2. Project 2. Project --> Option > Option --> General Option > General Option --> Output / Library Configuration > Output / Library Configuration OutputOutput Output files.

2 Output files : Output files : Executable type Library type Output Directories :Output Directories :Executable(Libraries) /Object /List (MAP) files Library ConfigurationLibrary Configuration Library file . , Library file Target . --Library (Normal or Full ) Library (Normal or Full ) --Memory ModelMemory Model--Processor Configuration OptionsProcessor Configuration OptionsEmbedded WorkbenchAVR (1_3)3. Project 3. Project --> Option > Option --> General Option > General Option --> Library Options> Library OptionsLibrary Options Library Options printf /scanf formatter Level . PrintfPrintfformatter :formatter :Large/ Small (default) / TinyScanfScanfformatter :formatter :Large / Small (default) * : * : Library ConfigurationLibrary Configuration ON/OFF( Normal - No/ Full Yes )* EWAVR compiler guide diagnostics Embedded WorkbenchAVR (1_4)General XCL , XCL.

3 Heap Size Stack RAM, ROM Flash (Base) . , define Enable bit definitions in I/O-include files. , . ( Disable ) Initialize unused . Target Processor configuration v0, v1 Dynamic memory allocation . 4. Project 4. Project --> Option > Option --> General Option > General Option --> Heap Configuration / System> Heap Configuration / SystemEmbedded WorkbenchAVR (1_5)4. Project 4. Project --> Option > Option --> General option > General option --> MISRA C> MISRA CMISRA C MISRA C Option . What is MISRA C?What is MISRA C?The Motor Industry Software Reliability Association (MISRA) is an organization in the UK that promotes safety in automotive 1998, MISRA published its Guidelines for the Use of the C Language in Vehicle Based Software.

4 The guidelines address the ambiguities of the C languageand establish coding rules for the automotive C includes 127 rules. 93 of these are requiredand the remaining 34 are advisory. All rules apply to the source code and not to the object code generated by the should use MISRA C?Who should use MISRA C?Compliance with the MISRA C guidelines is a require-ment in many automotive companies but could be beneficial in any development guidelines enforce sound coding practices and address the ambiguities of C; they help developers write code in a consistent manner and avoid does it work?How does it work?The IAR MISRA C Checker is completely integrated with the IAR C compiler . From IAR Embedded Workbench, you can control which MISRA C rules are checked; the settings will be used for both the compiler and the linker. Embedded WorkbenchAVR (2_1)5. Project 5. Project --> Option > Option --> C/C++ compiler > C/C++ compiler --> Language > Language C/C++.

5 Language : [C]Language : [C] . Default C language .Require prototypes : [Disable]Require prototypes : [Disable] . * EWAVR_User Guide Require prototypes Language conformance : [ Allow IAR extensions ]Language conformance : [ Allow IAR extensions ] language Strict ISO/ANSI Type , Core language . * compiler Reference Guide IAR language extension Plain Plain charchar is : [Unsigned]is : [Unsigned](Unsigned) Char . Enable Enable MultibyteMultibyteSupport :Support :[ Disable ][ Disable ]Multibyte . Embedded WorkbenchAVR (2_2)6. Project 6. Project --> Option > Option --> C/C++ compiler > C/C++ compiler --> Optimization> OptimizationC/C++ . Optimization : [ Size ]Optimization : [ Size ]ARM IAR C/C++ 2 Optimization model( SizeSize or Speed Speed ) , 4 Optimization Level.

6 Optimization Level : Optimization Level : - None [ Best debug support ] - Low - Medium- High [ Maximum optimization ]Enabled transformation :Enabled transformation :- Common Sub-expression elimination - Loop unrolling- Function in-lining- Code motion- Type-based alias analysis- Static variable clustering- Instruction scheduling* EWAVR compiler Guide Efficient coding for .. - Common sub-expression : , - Function inline : inline , . - Code Motion : Embedded WorkbenchAVR (2_3)7. Project 7. Project --> Option > Option --> C/C++ compiler > C/C++ compiler --> Output / List> Output / ListOutput Output program module[default] Library module . module , . * EWAVR compiler Guide segment reference List List list (*.lst) ASM source (*.s79).

7 File Assemblermnemonics diagnostics Source include compiler call frame information . (Demo )* EWAVR User guide compiler list Embedded WorkbenchAVR (2_4)8. Project 8. Project --> Option > Option --> C/C++ compiler > C/C++ compiler --> Preprocessor> PreprocessorIgnore standard include directories : [ Disable ]Ignore standard include directories : [ Disable ] C:\..AVR\inc ( $TOOLKIT_DIR&\INC\ ) includedirectory . Additional include directories : (one per line)Additional include directories : (one per line) include . Ex) $PROJ_DIR$\srciar\$PROJ_DIR$\..\..\PrePr e--include : include : include . Ex) Preprocessor .Defined symbols : (one per line)Defined symbols : (one per line)Source Define symbol . Preprocessor output to file.

8 Ex) TESTVER = 1 Embedded WorkbenchAVR (2_5)7. Project 7. Project --> Option > Option --> C/C++ compiler > C/C++ compiler --> Diagnostics/ Extra Options> Diagnostics/ Extra OptionsDiagnostics Diagnostics Remark/Warning/ Error Message . * EWAVR User guide diagnostics * EWAVR compiler guide diagnostics Extra Options Extra Options GUI Option Option . * GUI : Graphic User InterfaceEmbedded WorkbenchAVR (3,4)8. Project 8. Project --> Option > Option --> Customer Build> Customer BuildCustomer BuildCustomer Build Option , IAR S/W S/W Tool , Tool chain . Ex) Lex , YACC* EWAVR User guide Extending the tool chain * EWAVR compiler guide diagnostics Build Actions Build Actions build pre-build /post-build.

9 * EWAVR User guide building 9. Project 9. Project --> Option > Option --> Build Actions> Build ActionsEmbedded WorkbenchAVR (5_1)10. Project 10. Project --> Option > Option --> Linker > Linker --> Output> OutputOutput :Output : Format , . Ex) ( For C-SPY Debugging format) ( For External Debugging format ) ( For Hex image format )Format :Format :Debug information for CDebug information for C--SPY : [ Disable ] SPY : [ Disable ] C-SPY Format With runtime control modules : [ Enable ]With runtime control modules : [ Enable ]Program abort, exit, assertions etc. With I/O emulation modules : [ Enable ] With I/O emulation modules : [ Enable ] Terminal I/O handling ( stdin stdout ) Buffered terminal output : [ Disable ] Buffered terminal output : [ Disable ] Terminal Buffer .Allow CAllow C--SPYSPY--specific extra output file:[Enable] specific extra output file:[Enable] Extra Output page enable Option Output Output Format Output file.

10 Output : [Disable]Output : [Disable]C-SPY Format Format . Output format : Output format : - Intel-standard/extended : HEX file - UBROF8 : H/W tool Debugger ModuleModule--local : local : Symbol Symbol Option Option .. Embedded WorkbenchAVR (5_2)11. Project 11. Project --> Option > Option --> Linker > Linker --> Extra output / List> Extra output / ListExtra output Extra output OutputOutput Format . , OptionsOptions LinkerLinker -OutputOutput - (Format)Allow CAllow C--SPYSPY--specific extra output filespecific extra output file option EnableEnable . List List MAP (*.map) . C/C++ compiler List . Linking , SymbolSymbol Option global / local symbol .Module summaryModule summary : module Include suppressed entries :Include suppressed entries : List segment.