User manual

Table Of Contents
5. Debugging with the simulator Raisonance Tools for ARM
5. Debugging with the simulator
The Ride7 for ARM simulator simulates ARM7, ARM9 and Cortex-M3 cores and most common
peripherals, it lets you check your code and the interaction between your code and the peripherals.
This section shows use of the simulator for ARM and Cortex-M3 microcontrollers. The interface is the
same for all targets. Detailed documentation is in the Ride7 general documentation.
5.1 About the simulator
Ride7 supports most STRx and STM32 derivatives to various degrees, and some LCPx devices.
In this section, we use the example project testR7, found in the Ride7 installation directory:
<Ride>\Examples\ARM\Test\TestR7.rprj. This project uses the General Purpose Input/Output Port 1
peripheral and consists of a new empty project with one very simple main.c file.
5.2 Simulator options
Misc.
Code Exploration: If set to Yes, code is explored from the load, to recognize and to flag the
first byte of any instruction (this is a call-tree
exploration). As instructions have different
sizes, this is needed to display an exact
disassembly to the user. This option must be
checked in order for the trace to explore the
disassembly code.
If set to No, loading is faster and exploration is
not complete; the code is displayed as db
0xxh. In simulation, you should explore
progressively (explore command).
Value Record: This option allows to record, or not, additional information at each instruction. SP
indicates the value of the stack pointer after the execution of the current instruction
Expression: Enter a simple expression to be evaluated.
Advanced: Crystal Frequency: Set the crystal frequency you want to simulate.
5.3 Launching the simulator
To launch the simulator: type CTRL–D or select Debug > Start in the main menu.
Before launching the simulator, check the Debug
Environment options, in particular that Simulator SIM-
ARM is selected for Debug Tool.
If your project has not been built, this is done
automatically before launching the simulator, otherwise
the simulator is launched directly.
You are now in the simulator.
Your Ride7 window looks like the following image:
- 20 -