Codewarrior for Armv7 Targeting Manual
Total Page:16
File Type:pdf, Size:1020Kb
Freescale Semiconductor, Inc. Document Number: CW_ARMv7_Targeting_Manual Reference Manual 10.0.8, 01/2016 CodeWarrior for ARMv7 Targeting Manual Contents Contents Chapter 1 Introduction.......................................................................................9 1.1 Release Notes....................................................................................................................................9 1.2 Contents of this Manual......................................................................................................................9 1.3 Accompanying documentation......................................................................................................... 10 1.4 ARM Embedded Application Binary Interface.................................................................................. 10 1.5 CodeWarrior Development Studio Tools..........................................................................................11 1.5.1 Eclipse IDE......................................................................................................................... 11 1.5.2 C/C++ Compiler..................................................................................................................11 1.5.3 Assembler...........................................................................................................................11 1.5.4 Linker..................................................................................................................................12 1.5.5 Debugger............................................................................................................................12 1.5.6 GNU newlib libraries...........................................................................................................12 1.6 CodeWarrior IDE.............................................................................................................................. 12 1.6.1 Project files......................................................................................................................... 13 1.6.2 Code editing........................................................................................................................13 1.6.3 Compiling............................................................................................................................13 1.6.4 Linking................................................................................................................................ 13 1.6.5 Debugging.......................................................................................................................... 14 Chapter 2 Working with Projects..................................................................... 15 2.1 CodeWarrior Bareboard Project Wizard...........................................................................................15 2.1.1 Create CodeWarrior Bareboard Project page.....................................................................16 2.1.2 Processor page...................................................................................................................17 2.1.3 Debug Target Settings page...............................................................................................18 2.1.4 Build Settings page.............................................................................................................20 2.1.5 Configurations page............................................................................................................22 2.2 CodeWarrior Linux Project Wizard................................................................................................... 23 2.2.1 Create CodeWarrior Linux Project page.............................................................................24 2.2.2 Processor page...................................................................................................................25 2.2.3 Build Settings page.............................................................................................................26 2.2.4 Linux Application page........................................................................................................27 2.3 Creating projects.............................................................................................................................. 29 2.3.1 Creating CodeWarrior Bareboard Application project.........................................................29 2.3.2 Creating CodeWarrior Bareboard Library project............................................................... 31 2.3.3 Creating CodeWarrior Linux Application project.................................................................32 2.4 Building projects............................................................................................................................... 34 2.4.1 Manual-Build mode.............................................................................................................34 2.4.2 Auto-Build mode................................................................................................................. 35 Chapter 3 Build Properties.............................................................................. 37 3.1 Changing build properties.................................................................................................................37 3.2 Restoring build properties.................................................................................................................38 3.3 Defining C/C++ build settings and behavior..................................................................................... 38 3.3.1 Define build settings........................................................................................................... 38 3.3.2 Define build behavior..........................................................................................................40 3.4 Properties for <project>....................................................................................................................42 3.4.1 Target Processor................................................................................................................ 43 CodeWarrior for ARMv7 Targeting Manual, Rev. 10.0.8, 01/2016 Freescale Semiconductor, Inc. 3 Contents 3.4.2 Debugging.......................................................................................................................... 44 3.4.3 ARM Sourcery GCC Assembler......................................................................................... 44 3.4.3.1 Preprocessor.........................................................................................................45 3.4.3.2 Warnings...............................................................................................................45 3.4.4 ARM Sourcery GCC C Compiler........................................................................................ 46 3.4.4.1 Preprocessor.........................................................................................................46 3.4.4.2 Optimization..........................................................................................................47 3.4.4.3 Warnings...............................................................................................................48 3.4.4.4 Miscellaneous....................................................................................................... 48 3.4.5 ARM Sourcery GCC C Linker.............................................................................................49 3.4.5.1 General................................................................................................................. 50 3.4.5.2 Libraries................................................................................................................ 50 3.4.5.3 Miscellaneous....................................................................................................... 50 Chapter 4 Debug Configurations.....................................................................53 4.1 Using Debug Configurations dialog..................................................................................................53 4.1.1 Main....................................................................................................................................54 4.1.2 Arguments.......................................................................................................................... 58 4.1.3 Debugger............................................................................................................................59 4.1.3.1 Debug................................................................................................................... 60 4.1.3.2 Exceptions............................................................................................................ 62 4.1.3.3 Interrupts...............................................................................................................62 4.1.3.4 Download..............................................................................................................63 4.1.3.5 PIC........................................................................................................................65 4.1.3.6 Other Executables................................................................................................ 66 4.1.3.7 Symbolics..............................................................................................................67