Coide User Guide
Total Page:16
File Type:pdf, Size:1020Kb
CoIDE User Guide 2013-01-21 V1.0 Completed Website: http://www.coocox.org Forum: http://forum.coocox.org Technical: [email protected] Market: [email protected] 1 Catalog 1 CoIDE Quick Start............................................................................................................... 5 2 General Introduction ....................................................................................................... 15 2.1 New Concepts ................................................................................................... 15 2.1.1 Terminology Note ............................................................................................. 15 2.1.2 CoIDE Features ................................................................................................. 15 2.2 Support list........................................................................................................ 17 2.2.1 Support Devices ................................................................................................ 17 2.2.2 Supported Adapters ......................................................................................... 19 2.3 Requirement for CoIDE ..................................................................................... 20 3 Preparation ...................................................................................................................... 21 3.1 Set GCC Compiler .............................................................................................. 21 3.1.1 ARM GCC Introduction ..................................................................................... 21 3.1.2 Set GCC in CoIDE ............................................................................................... 22 4 User Interface .................................................................................................................. 24 4.1 Menus and Actions ........................................................................................... 24 4.1.1 File Menu Actions ............................................................................................. 24 4.1.2 Edit Menu Actions ............................................................................................ 24 4.1.3 View Menu Actions ........................................................................................... 24 4.1.4 Project Menu Actions ....................................................................................... 25 4.1.5 Flash Menu Actions .......................................................................................... 25 4.1.6 Debug Menu Actions ........................................................................................ 25 4.1.7 Search Menu Actions ........................................................................................ 26 4.1.8 Help Menu Actions ........................................................................................... 26 4.2 Toolbar .............................................................................................................. 27 4.2.1 Editor Toolbar Actions ...................................................................................... 27 4.2.2 Debug Toolbar Actions ..................................................................................... 28 4.3 Editor View ....................................................................................................... 29 4.3.1 Welcome ........................................................................................................... 29 4.3.2 Breakpoint ........................................................................................................ 30 4.3.3 Components ..................................................................................................... 31 4.3.4 Console ............................................................................................................. 31 2 4.3.5 Configuration .................................................................................................... 33 4.3.6 Editor ................................................................................................................ 37 4.3.7 Help ................................................................................................................... 37 4.3.8 Help Contents ................................................................................................... 38 4.3.9 Outline .............................................................................................................. 39 4.3.10 Peripheral ......................................................................................................... 40 4.3.11 Project Explorer ................................................................................................ 41 4.3.12 Repository ......................................................................................................... 42 4.3.13 Search ............................................................................................................... 42 4.4 Debug View ....................................................................................................... 44 4.4.1 Breakpoints ....................................................................................................... 44 4.4.2 Debug ................................................................................................................ 45 4.4.3 Disassembly ...................................................................................................... 47 4.4.4 Expressions ....................................................................................................... 49 4.4.5 Memory ............................................................................................................ 51 4.4.6 Peripherals view (CoAssistant) ......................................................................... 52 4.4.7 Registers ........................................................................................................... 54 4.4.8 Semihosting view .............................................................................................. 55 4.4.9 Variables ........................................................................................................... 56 5 Project Management ....................................................................................................... 59 5.1 Create Project ................................................................................................... 59 5.1.1 Create Project by Chip Model ........................................................................... 59 5.1.2 Create Project by Board Model ........................................................................ 64 5.2 Manage Target/Groups/Files and Switch Chip ................................................. 69 5.2.1 Target List Management in the Multi-configuration ........................................ 69 5.3 Project configuration ........................................................................................ 73 5.3.1 Change device ................................................................................................... 73 5.3.2 Compile configuration ...................................................................................... 75 5.3.3 Link configuration ............................................................................................. 76 5.3.4 Output configuration ........................................................................................ 78 5.3.5 User configuration ............................................................................................ 79 5.3.6 Debugger configuration .................................................................................... 80 3 5.3.7 Download configuration ................................................................................... 81 5.4 Build project ..................................................................................................... 82 5.5 Open project ..................................................................................................... 83 6 Debug .............................................................................................................................. 85 6.1 Introduction ...................................................................................................... 85 6.1.1 Enter debug mode ............................................................................................ 85 6.1.2 Debug control ................................................................................................... 85 6.1.3 Set breakpoints ................................................................................................. 85 6.1.4 Step mode ......................................................................................................... 85 6.1.5 Debug Example ................................................................................................. 86 6.2 How to use debug views ................................................................................... 89 6.2.1 Disassembly view .............................................................................................. 89 6.2.2 Memory view .................................................................................................... 90 6.2.3 Variables view ................................................................................................... 91 7 Components, Examples and Boards ...............................................................................