
STM8 Debugger
8
©1989-2019 Lauterbach GmbH
5.
Load the program into the flash.
A typical start sequence of the STM8 is shown below. This sequence can be written to a PRACTICE script
file (*.cmm, ASCII file format) and executed with the command
<filename>
.
*) These commands open windows on the screen. The window position can be specified with the
command.
DO ~~/demo/stm8/flash/stm8.cmm
B::
; Select the ICD device prompt
RESet
; Reset the TRACE32 software
MAP.UpdateOnce p:0x8000--
0xffff
; Specify the address range for caching
WinCLEAR
; Clear all windows
SYStem.Up
; Reset the target and enter debug mode
DO
~~/demo/stm8/flash/stm8.cmm
; Load the target application into the
Flash
PER.view
; Show clearly arranged peripherals
; in window *)
List.Mix
; Open source code window *)
Register.view /SpotLight
; Open register window *)
Frame.view /Locals /Caller
; Open the stack frame with
; local variables *)
Var.Watch %SpotLight flags ast
; Open watch window for variables *)
Break.Set 0x1000 /Program
; Set software breakpoint to address
; 1000 (address 1000 is within RAM
; address range)
Break.Set 0x101000 /Program
; Set on-chip breakpoint
; to address 101000 (address 101000 is
; within Flash address range)