Raisonance Tools for ARM Core-Based Microcontrollers Getting Started
Total Page:16
File Type:pdf, Size:1020Kb
Raisonance Tools for ARM Raisonance Tools for ARM core-based microcontrollers Getting Started Document version 25 July 2019 Raisonance Tools for ARM Contents 1. Introduction........................................................................................................................6 1.1 Purpose of this manual....................................................................................................................6 1.2 Scope of this manual....................................................................................................................... 6 1.3 Related documents.......................................................................................................................... 6 1.4 Additional help or information..........................................................................................................6 1.5 Raisonance brand microcontroller application development tools....................................................7 2. Raisonance tools for ARM overview..................................................................................8 2.1 Ride7............................................................................................................................................... 9 2.2 RFlasher7........................................................................................................................................ 9 2.3 RKit-ARM......................................................................................................................................... 9 2.4 SIMICE ARM simulator....................................................................................................................9 2.5 RLink............................................................................................................................................... 9 2.6 TapNLink....................................................................................................................................... 10 2.7 Licenses........................................................................................................................................ 10 2.8 Supported devices and tools..........................................................................................................11 2.8.1 ARM MCUs.............................................................................................................................11 2.8.2 Third party tools used in conjunction with Ride7 for ARM.......................................................11 3. Setting up the software....................................................................................................12 3.1 Use up-to-date software.................................................................................................................12 3.2 Installing the software....................................................................................................................12 4. Using projects to build an application..............................................................................13 4.1 Opening an existing project...........................................................................................................13 4.1.1 Example projects....................................................................................................................13 4.2 Creating a new project...................................................................................................................14 - 2 - Raisonance Tools for ARM 4.2.1 Selecting the target processor................................................................................................15 4.2.2 Choosing and configuring the toolchain..................................................................................16 4.3 Using the GNU GCC toolchain......................................................................................................17 4.3.1 Using other GCC toolchains...................................................................................................17 4.3.2 GCC compiler options.............................................................................................................17 4.3.3 LD linker options.....................................................................................................................18 4.4 Choosing the Boot Mode...............................................................................................................21 4.4.1 What is Boot Mode?...............................................................................................................21 4.4.2 Flash boot mode.....................................................................................................................22 4.4.3 RAM boot mode (debug only).................................................................................................22 4.4.4 External memory boot mode...................................................................................................23 4.5 Importing projects from other IDEs................................................................................................24 4.5.1 Importing from Keil uVision.....................................................................................................24 4.5.2 Importing from other IDEs using Makefiles.............................................................................25 5. Debugging with the simulator..........................................................................................26 5.1 About the simulator........................................................................................................................26 5.2 Simulator options...........................................................................................................................26 5.3 Launching the simulator.................................................................................................................26 5.4 Simulator toolbar............................................................................................................................ 28 5.5 Viewing a peripheral...................................................................................................................... 29 5.6 Viewing the stack...........................................................................................................................29 5.7 Using breakpoints..........................................................................................................................30 6. Debugging with hardware tools.......................................................................................31 6.1 Selecting hardware debugging tools..............................................................................................31 6.2 RLink programming and debugging features for ARM...................................................................32 6.2.1 RLink capabilities....................................................................................................................32 6.2.2 Configuring Ride7 for use with the RLink................................................................................33 - 3 - Raisonance Tools for ARM 6.2.3 RLink ADPs for ARM..............................................................................................................42 6.2.4 Example projects....................................................................................................................45 6.2.5 Testing USB driver, connections and power supplies.............................................................45 6.2.6 Merging and sorting hex files (for Open4-LAB and/or multi-part applications)........................45 6.3 ST-Link programming and debugging features for ARM................................................................46 6.3.1 Presentation........................................................................................................................... 46 6.3.2 Features................................................................................................................................. 46 6.3.3 Operation................................................................................................................................ 46 6.3.4 Limitations..............................................................................................................................46 6.4 TapNLink programming and debugging features for ARM.............................................................46 6.4.1 Presentation........................................................................................................................... 46 6.4.2 Features................................................................................................................................. 47 6.4.3 Software Setup....................................................................................................................... 47 6.5 Open4 & Open4-LAB programming and debugging features for ARM..........................................50 6.6 Cortex Serial Wire Viewer (SWV) debugging features (Open4 RLink only)...................................50 6.6.1 Introduction.............................................................................................................................50 6.6.2 Hardware requirements..........................................................................................................50 6.6.3 Configure Ride7 to use the