Lauterbach STM8 Manual

Debugger
Hide thumbs Also See for STM8:

Advertisement

Quick Links

STM8 Debugger
Release 09.2023
MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM8 and is the answer not in the manual?

Questions and answers

Summary of Contents for Lauterbach STM8

  • Page 1 STM8 Debugger Release 09.2023 MANUAL...
  • Page 2 Brief Overview of Documents for New Users Demo and Start-up Script Configuration ........................System Overview Quick Start ......................... Troubleshooting ........................ FAQ ............................. STM8 specific SYStem Settings ..................SYStem.CPU Select the used CPU SYStem.MemAccess Real-time memory access (non-intrusive) SYStem.Mode Establish the communication with the target SYStem.LOCK...
  • Page 3 STM8 Debugger Version 10-Oct-2023 1989-2023 © Lauterbach STM8 Debugger...
  • Page 4 Switch the target power ON. Configure your debugger e.g. via a start-up script. Power down: Switch off the target power. Disconnect the debug cable from the target. Close the TRACE32 software. Power OFF the TRACE32 hardware. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 5 (the document you are reading at the moment) is CPU specific, while all other parts of the online help are generic for all CPUs supported by Lauterbach. So if there are questions related to the CPU, the Processor Architecture Manual should be your first choice.
  • Page 6: System Overview

    The on-chip FLASH and the EEProm memory can be programmed via the stm8.cmm script: CD.DO ~~/demo/stm8/flash/stm8.cmm Please be aware that you should check the Flash and EEProm size specified for your MCU in the stm8.cmm before executing this script. Configuration System Overview Example configuration for an STM8 debugger.
  • Page 7: Quick Start

    CPU stops executing any instruction, and the user is able to download and test the code. After this command is executed, it is possible to access memory and registers. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 8 Load the program into the flash. DO ~~/demo/stm8/flash/stm8.cmm A typical start sequence of the STM8 is shown below. This sequence can be written to a PRACTICE script file (*.cmm, ASCII format) and executed with the command <file>. ; Select the ICD device prompt RESet ;...
  • Page 9: Troubleshooting

    SWD connector. • The target is in an unrecoverable state. Re-power your target and try again. • The core is kept in reset. • There is a watchdog which needs to be deactivated. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 10 Please refer to https://support.lauterbach.com/kb. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 11 Format: SYStem.CPU <cpu> <cpu>: STM8S005K6 | STM8S003K3 | STM8S001J3 | … Default: STM8xxx. Selects the processor type. All of the STM8 MCU cores with SWD Interface are supported. SYStem.MemAccess Real-time memory access (non-intrusive) Format: SYStem.MemAccess Enable | Denied | StopAndGo Default: Denied.
  • Page 12: System Mode

    If the system is locked, no access to the debug port will be performed by the debugger. While locked, the debug connector of the debugger is tristated. The main intention of the SYStem.LOCK command is to give debug access to another tool. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 13 If enabled, the interrupt enable flag of the EFLAGS register will be cleared during HLL single-step operations. After the single step, the interrupt enable flag is restored to the value it had before the step. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 14 CPU specific TrOnchip Commands The TrOnchip command group is not available for the STM8 debugger. 1989-2023 © Lauterbach STM8 Debugger...
  • Page 15 The Microchip STM8 architecture does not support software breakpoints. On-chip breakpoints for instructions The STM8 MCUs support a total of two on-chip breakpoint registers which can be used as program breakpoints to stop and debug the program which executes always in the Flash.
  • Page 16 To access a memory class, write the class in front of the address. For example, use D to access the data memory. Data.dump D:0x00 The memory class P is used to denote the Flash memory. Data.dump P:0x00 Since the STM8 architecture uses a Unified Memory Architecture, the following two examples return the same results. Data.dump D:0x100 Data.dump P:0x100 1989-2023 ©...
  • Page 17 Target Adaption Connector Type and Pinout Debug Cable Signal RESET[PA0] 1989-2023 © Lauterbach STM8 Debugger...

Table of Contents