|Home > Fast Models examples > Python examples|
Python debug scripting examples.
These examples show how to use the fm.debug Python module to connect to targets, read the contents of caches, read/write memory and registers, set breakpoints, and perform run control. Some of these scripts use images that are supplied as assembly language source files.
Table 6-6 Python examples
Saves or restores the state of a library model, or a specific component in it, using either the default checkpoint delegate, or an example of a custom delegate.
Enables exception breakpoints and sets program and memory breakpoints in an application running on a library model. Prints the breakpoints that were hit.
Prints the contents of
Prints register names and values. You can specify a list of registers and targets, or if not, it prints all registers for all CPU targets.
Writes to and reads from target memory, as bytes and words, to show the effect of toggling the endianness of the processor.
Gets and sets instantiation time and run-time model parameters.
Reads and writes registers. Shows different ways of specifying register names.
Binds semihosting stdin and stdout calls to the semihosting stdin and stdout of the target.
Stops the model when a string is entered in the UART terminal.
Prints the contents of the
Starts tracing a model from the address at which a breakpoint is hit. The GenericTrace plug-in must have been loaded on the model that it connects to.
For information about GenericTrace, see 5.8 GenericTrace.
Loads a library model that is specified as a parameter.