User manual

Table Of Contents
Raisonance Tools for ARM 5. Debugging with the simulator
5.5 Viewing a peripheral
To view a peripheral, you must open it by clicking on the corresponding item in the peripheral tree. For
example, to view the Port 1, double click on the IOPORT1 icon. The Port 1 view appears.
This view shows the state of each of the port’s pins. Green indicates a value of one, and red a value of
zero. It is possible to connect each pin of the port to a Net, to VCC, to Ground or no connection. This is
done by clicking on the LED. The registers also let you control the peripheral.
With the test application described above, click on the Run button to launch the execution and
click on the Pause button . You then see the LEDs counting.
Note: Currently, only UART is fully simulated in order to provide putchar/printf capabilities.
For the other peripherals, the views provide a comprehensive presentation of the internal registers, but
the dynamic behavior of these registers exists only when running the program on real hardware via a
JTAG connection (see Debugging with Hardware Tools).
5.6 Viewing the stack
You can view the stack by clicking View >Debug Windows > View Call Stack. This opens this
window:
It shows the list of functions currently in the stack, allowing you to trace the calls up to the main function
or the current Interrupt Service Routine. Double-click on a function in the stack view to place the
cursor in the associated source file. There are a few restrictions for using this view:
It can only be used without optimization. (level zero).
It needs debugging information for all the functions in the stack.
It does not work during functions prologue and epilogue. (i.e. the very beginning and end of
functions).
It does not work properly when the current PC is not on the beginning of a C line. (after a stop or
assembler step).
- 23 -