Hide thumbs Also See for STM8:

Advertisement

Quick Links

STM8 Debugger

TRACE32 Online Help
TRACE32 Directory
TRACE32 Index
TRACE32 Documents ......................................................................................................................
ICD In-Circuit Debugger ................................................................................................................
Processor Architecture Manuals ..............................................................................................
STM8 .........................................................................................................................................
STM8 Debugger ....................................................................................................................
History ................................................................................................................................
Introduction .......................................................................................................................
Configuration .....................................................................................................................
Warning ..............................................................................................................................
Quick Start .........................................................................................................................
Troubleshooting ................................................................................................................
FAQ .....................................................................................................................................
STM8 specific SYStem Settings .......................................................................................
STM8 specific TrOnchip Command .................................................................................
Breakpoints ........................................................................................................................
Memory Classes ................................................................................................................
STM8 Debugger
©1989-2019 Lauterbach GmbH
1
1
3
4
4
4
5
5
6
7
9
10
10
12
12
12
13
13
13
14
14
15
15
16
16
16
16
17

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: Table Of Contents

    Demo and Start-up Script Configuration ........................System Overview Warning ..........................Quick Start ......................... Troubleshooting ........................ FAQ ............................. Debugger STM8 specific SYStem Settings ..................SYStem.CPU Select the used CPU SYStem.CpuAccess Run-time memory access (intrusive) SYStem.MemAccess Real-time memory access (non-intrusive) SYStem.Mode Establish the communication with the target SYStem.LOCK...
  • Page 2 Target Adaption ......................... Connector Type and Pinout Support ..........................Available Tools Compilers Products ..........................Product Information Order Information ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 3: History

    STM8 Debugger Version 16-Apr-2019 History 14-Feb-18 New manual. ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 4: Introduction

    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. ©1989-2019 Lauterbach GmbH...
  • Page 5: Configuration

    Configuration System Overview Example configuration for an STM8 debugger. Windows / Linux / Mac OS Target Debug Cable POWER DEBUG USB INTERFACE / USB 3 PODBUS IN LAUTERBACH POWER SELECT Cable TRIG EMULATE POWER 7-9V PODBUS OUT POWER DEBUG INTERFACE / USB 3 AC/DC Adapter ©1989-2019 Lauterbach GmbH...
  • Page 6: Warning

    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-2019 Lauterbach GmbH STM8 Debugger...
  • Page 7: Quick Start

    CPU stops executing any instruction, and the user is able to download the code and test. After this command is executed, it is possible to access memory and registers. ©1989-2019 Lauterbach GmbH 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 file format) and executed with the command <filename>. ; 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-2019 Lauterbach GmbH STM8 Debugger...
  • Page 10: Faq

    ROM/FLASH. Address ranged with "MAP.UPDATEONCE" will read the specified address range only once after the core stopped at a breakpoint or manual break. "MAP.CONST" will read the specified address range only once per SYStem.Mode command (e.g. SYStem.Up). ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 11 If the memory can be changed by Data.Set but the breakpoint doesn't work it might be a problem of using an MMU on target when setting the breakpoint to a symbolic address that is different than the writable and intended memory location. ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 12: Stm8 Specific System Settings

    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.CpuAccess Run-time memory access (intrusive) Format: SYStem.CpuAccess Enable | Denied | Nonstop Default: Denied.
  • Page 13: System.memaccess

    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-2019 Lauterbach GmbH STM8 Debugger...
  • Page 14: System.option Imaskasm

    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-2019 Lauterbach GmbH STM8 Debugger...
  • Page 15: Stm8 Specific Tronchip Command

    STM8 specific TrOnchip Command TrOnchip.VarCONVert Adjust complex breakpoint in on-chip resource Format: TrOnchip.VarCONVert [ON | OFF] The on-chip breakpoints can only cover specific ranges. If you want to set a marker or breakpoint to a complex variable, the on-chip break resources of the CPU may be not powerful enough to cover the whole structure.
  • Page 16: Breakpoints

    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 17: Memory Classes

    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-2019 Lauterbach GmbH...
  • Page 18: Target Adaption

    Target Adaption Connector Type and Pinout Debug Cable Signal RESET[PA0] Support Lauterbach technical support is available via www.lauterbach.com/tsupport.html. ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 19: Available Tools

    STM8AF5288 STM8AF5289 STM8AF528A STM8AF52A6 STM8AF52A8 STM8AF52A9 STM8AF52AA STM8AF6213 STM8AF6213A STM8AF6223 STM8AF6223A STM8AF6226 STM8AF6246 STM8AF6248 STM8AF6266 STM8AF6268 STM8AF6269 STM8AF6286 STM8AF6288 STM8AF6289 STM8AF628A STM8AF62A6 STM8AF62A8 STM8AF62A9 STM8AF62AA STM8AF6366 STM8AF6388 STM8AL3136 STM8AL3138 STM8AL3146 STM8AL3148 STM8AL3166 STM8AL3168 STM8AL3188 STM8AL3189 ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 20 STM8AL3L66 STM8AL3L68 STM8AL3L88 STM8AL3L89 STM8AL3L8A STM8AL3LE88 STM8AL3LE89 STM8AL3LE8A STM8L001J3 STM8L051F3 STM8L052C6 STM8L052R8 STM8L101F1 STM8L101F2 STM8L101F3 STM8L101G2 STM8L101G3 STM8L101K3 STM8L151C2 STM8L151C3 STM8L151C4 STM8L151C6 STM8L151C8 STM8L151F2 STM8L151F3 STM8L151G2 STM8L151G3 STM8L151G4 STM8L151G6 STM8L151K2 STM8L151K3 STM8L151K4 STM8L151K6 STM8L151M8 STM8L151R6 ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 21 STM8L152K8 STM8L152M8 STM8L152R6 STM8L152R8 STM8L162M8 STM8L162R8 STM8S001J3 STM8S003F3 STM8S003K3 STM8S005C6 STM8S005K6 STM8S007C8 STM8S103F2 STM8S103F3 STM8S103K3 STM8S105C4 STM8S105C6 STM8S105K4 STM8S105K6 STM8S105S4 STM8S105S6 STM8S207C6 STM8S207C8 STM8S207CB STM8S207K6 STM8S207K8 STM8S207M8 STM8S207MB STM8S207R6 STM8S207R8 STM8S207RB STM8S207S6 STM8S207S8 STM8S207SB STM8S208C6 ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 22: Compilers

    STM8S208S6 STM8S208S8 STM8S208SB STM8S903F3 STM8S903K3 STM8SPLNB1 STM8TL52F4 STM8TL52G4 STM8TL53C4 STM8TL53F4 STM8TL53G4 Compilers Language Compiler Company Option Comment STM8 Cosmic Software ELF/DWARF STM8 IAR Systems AB ELF/DWARF STM8 Raisonance ELF/DWARF STM8 Small Device C ELF/DWARF Compiler ©1989-2019 Lauterbach GmbH STM8 Debugger...
  • Page 23: Products

    LA-2719 Debugger for STM8 (ICD) DEBUG-STM8 supports STM8 includes software for Windows, Linux and MacOSX requires Power Debug Module LA-2731 Converter ARM20 to STM8 4 Pin Connector CONV-ARM20-STM8-4 supports STM8 4 pin connector Order Information Order No. Code Text LA-2719...

Table of Contents