User manual

Debugging with the Simulator Ride7 for ARM
- 16 -
3.1 About the simulator
Ride7 for ARM supports most of the existing STRx and STM32 derivatives to various degrees.
For the rest of this section, we will use the example project called “testR7,” found in the standard
Ride7 installation directory:
C:\Program Files\Raisonance\Ride\Examples\ARM\Test\TestR7.rprj
This project uses the “General Purpose Input/Output Port 1” peripheral. It consists of a new
empty project to which we added one very simple “main.c” file.
3.2 Simulator Options
3.2.1.1 Misc.
A) Code Exploration
If this option is set to “Yes”, the code will be explored from the loading, to recognize and to flag
the first byte of any instruction (this is a call-tree exploration). Because the instructions have
different sizes, this is needed to display an exact disassembly to the user. If it is set to “No”, the
loading is faster and exploration is not complete; the code would be displayed as “db 0xxh,…”.
In simulation, you should explore progressively (explore command).
This option need to be checked to allow the trace to explore the disassembly code.
B) Value Record
This option allows to record or not additional information at each instruction:
SP: Value of the Stack Pointer after the execution of the current instruction
Expression that you want to be evaluated. Enter a simple expression in the Expression box.
3.2.1.2 Advanced
A) Crystal Frequency
Set the crystal frequency you want to simulate the program.
3.3 Launching the simulator
Before launching the simulator, check the different “Debug Environment” options and more
particularly that the “Simulator SIM-ARM” is selected for “Debug Tool”.