Lauterbach STM8 Manual Download Page 1

  STM8 Debugger

 

    1     

  

©1989-2019 Lauterbach GmbH

STM8 Debugger

TRACE32 Online Help  

TRACE32 Directory  

TRACE32 Index  

TRACE32 Documents   ......................................................................................................................

   ICD In-Circuit Debugger  ................................................................................................................

      Processor Architecture Manuals   ..............................................................................................

         STM8  .........................................................................................................................................

            STM8 Debugger   ....................................................................................................................

1

               History   ................................................................................................................................

3

               Introduction   .......................................................................................................................

4

                  Brief Overview of Documents for New Users

4

                  Demo and Start-up Script

4

               Configuration  .....................................................................................................................

5

                  System Overview

5

               Warning   ..............................................................................................................................

6

               Quick Start   .........................................................................................................................

7

               Troubleshooting   ................................................................................................................

9

               FAQ  .....................................................................................................................................

10

                  Debugger

10

               STM8 specific SYStem Settings  .......................................................................................

12

                  SYStem.CPU

Select the used CPU

12

                  SYStem.CpuAccess

Run-time memory access (intrusive)

12

                  SYStem.MemAccess

Real-time memory access (non-intrusive)

13

                  SYStem.Mode

Establish the communication with the target

13

                  SYStem.LOCK

Lock and tristate the debug port

13

                  SYStem.Option IMASKASM

Disable interrupts while single stepping

14

                  SYStem.Option IMASKHLL

Disable interrupts while HLL single stepping

14

               STM8 specific TrOnchip Command  .................................................................................

15

                  TrOnchip.VarCONVert

Adjust complex breakpoint in on-chip resource

15

               Breakpoints  ........................................................................................................................

16

                  Software breakpoints

16

                  On-chip breakpoints for instructions

16

                  On-chip breakpoints for data

16

               Memory Classes   ................................................................................................................

17

Summary of Contents for STM8

Page 1: ...12 SYStem CPU Select the used CPU 12 SYStem CpuAccess Run time memory access intrusive 12 SYStem MemAccess Real time memory access non intrusive 13 SYStem Mode Establish the communication with the target 13 SYStem LOCK Lock and tristate the debug port 13 SYStem Option IMASKASM Disable interrupts while single stepping 14 SYStem Option IMASKHLL Disable interrupts while HLL single stepping 14 STM8 sp...

Page 2: ...STM8 Debugger 2 1989 2019 Lauterbach GmbH Target Adaption 18 Connector Type and Pinout 18 Support 18 Available Tools 19 Compilers 22 Products 23 Product Information 23 Order Information 23 ...

Page 3: ...STM8 Debugger 3 1989 2019 Lauterbach GmbH STM8 Debugger Version 16 Apr 2019 History 14 Feb 18 New manual ...

Page 4: ...ng TRACE32 PowerView instances for different configurations of the debugger T32Start is only available for Windows General Commands general_ref_ x pdf Alphabetic list of debug commands Architecture specific information Processor Architecture Manuals These manuals describe commands that are specific for the processor architecture supported by your debug cable To access the manual for your processor...

Page 5: ...nfiguration for an STM8 debugger Target DEBUG CABLE LAUTERBACH Debug Cable POWER DEBUG INTERFACE USB 3 AC DC Adapter PC USB Cable LAUTERBACH POWER SELECT EMULATE PODBUS OUT USB PODBUS IN DEBUG CABLE POWER 7 9V TRIG POWER DEBUG USB INTERFACE USB 3 Debug Connector Windows Linux Mac OS ...

Page 6: ...he target while the target power is off 2 Connect the host system the TRACE32 hardware and the debug cable 3 Power ON the TRACE32 hardware 4 Start the TRACE32 software to load the debugger firmware 5 Connect the debug cable to the target 6 Switch the target power ON 7 Configure your debugger e g via a start up script Power down 1 Switch off the target power 2 Disconnect the debug cable from the ta...

Page 7: ...ts the CPU type 3 Inform the debugger about cashable address range FLASH EEPROM This is important to speed up the T32 GUI responsiveness The specified address range will be accesses only once after a break thus avoiding unnecessary memory accesses 4 Reset the target and enter debug mode This command resets the CPU on the target enables On Chip Debug Mode and issues a breakpoint right after the res...

Page 8: ...xffff 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 Sp...

Page 9: ...Re power your target and try again The core is kept in reset There is a watchdog which needs to be deactivated Error Message Event Reason target power fail SYStem Mode Up See below target processor in reset SYStem Down See below Target is not connected or the SWD Interface is returning an error SYStem Mode Up SYStem Mode Go The debugger expects to receive a confirmation for each command sent to th...

Page 10: ...n error without exe cuting SCREEN OFF some windows will not be updated SYStem POLLING SLOW will set a lower frequency for target state checks e g power reset jtag state It will take longer for the debugger to recognize that the core stopped on a breakpoint SETUP URATE 1 s will set the default update frequency of Data List Data dump Variable windows to 1 second the slowest possible setting prevent ...

Page 11: ... special features action like TriggerTrace TraceEnable TraceOn TraceOFF TRACE32 can not change the memory Example ROM and Flash when no preparation with FLASH Create FLASH TARGET and FLASH AUTO was made All type of memory if the memory device is missing the necessary control signals like WriteEnable or settings of registers and SpecialFunctionRegisters SFR Contrary settings in TRACE32 Like MAP BOn...

Page 12: ... stops the program execution shortly Each short stop takes 1 100 ms depending on the speed of the debug interface and on the number of the read write accesses required A red S in the state line of the TRACE32 screen indicates this intrusive behavior of the debugger Denied Do not allow intrusive run time memory access Nonstop Lock all features of the debugger that affect the run time behavior Nonst...

Page 13: ...ocked the debug connector of the debugger is tristated The main intention of the SYStem Lock command is to give debug access to another tool Format SYStem MemAccess CPU Denied CPU This option is not available at the moment Denied Real time memory access during program execution to target is disabled Format SYStem Mode mode mode Down Go Up Down Disables the debugger The state of the CPU remains unc...

Page 14: ...ed to the value it had before the step It is turned on to make sure that no interrupt routine is serviced between break and go states SYStem Option IMASKHLL Disable interrupts while HLL single stepping Default OFF 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 ...

Page 15: ...nges 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 If the option TrOnchip VarCONVert is set to ON the breakpoint will automatically be converted into a single address breakpoint This is the default setting Otherwise an error message is generated Format TrOnchip VarCONVert ON OFF ...

Page 16: ...ata breakpoints can be triggered with respect to the data address or access type i e read write or both or the data value The two instruction breakpoints of STM8 MCUs can be used as data breakpoints In case of an on chip data breakpoint every load and store instruction is checked with respect to the breakpoint address access type and the value The data breakpoints are especially useful to find out...

Page 17: ...s in front of the address For example use D to access the data memory The memory class P is used to denote the Flash memory Since the STM8 architecture uses a Unified Memory Architecture the following two examples return the same results Access Class Description D Data P Program Data dump D 0x00 Data dump P 0x00 Data dump D 0x100 Data dump P 0x100 ...

Page 18: ...er 18 1989 2019 Lauterbach GmbH Target Adaption Connector Type and Pinout Debug Cable Support Lauterbach technical support is available via www lauterbach com tsupport html Pin Signal 1 VDD 2 PD1 3 GND 4 RESET PA0 ...

Page 19: ...A8 YES STM8AF52A9 YES STM8AF52AA YES STM8AF6213 YES STM8AF6213A YES STM8AF6223 YES STM8AF6223A YES STM8AF6226 YES STM8AF6246 YES STM8AF6248 YES STM8AF6266 YES STM8AF6268 YES STM8AF6269 YES STM8AF6286 YES STM8AF6288 YES STM8AF6289 YES STM8AF628A YES STM8AF62A6 YES STM8AF62A8 YES STM8AF62A9 YES STM8AF62AA YES STM8AF6366 YES STM8AF6388 YES STM8AL3136 YES STM8AL3138 YES STM8AL3146 YES STM8AL3148 YES S...

Page 20: ... STM8L051F3 YES STM8L052C6 YES STM8L052R8 YES STM8L101F1 YES STM8L101F2 YES STM8L101F3 YES STM8L101G2 YES STM8L101G3 YES STM8L101K3 YES STM8L151C2 YES STM8L151C3 YES STM8L151C4 YES STM8L151C6 YES STM8L151C8 YES STM8L151F2 YES STM8L151F3 YES STM8L151G2 YES STM8L151G3 YES STM8L151G4 YES STM8L151G6 YES STM8L151K2 YES STM8L151K3 YES STM8L151K4 YES STM8L151K6 YES STM8L151M8 YES STM8L151R6 YES CPU ICE F...

Page 21: ...M8S005C6 YES STM8S005K6 YES STM8S007C8 YES STM8S103F2 YES STM8S103F3 YES STM8S103K3 YES STM8S105C4 YES STM8S105C6 YES STM8S105K4 YES STM8S105K6 YES STM8S105S4 YES STM8S105S6 YES STM8S207C6 YES STM8S207C8 YES STM8S207CB YES STM8S207K6 YES STM8S207K8 YES STM8S207M8 YES STM8S207MB YES STM8S207R6 YES STM8S207R8 YES STM8S207RB YES STM8S207S6 YES STM8S207S8 YES STM8S207SB YES STM8S208C6 YES CPU ICE FIRE...

Page 22: ...B YES STM8S903F3 YES STM8S903K3 YES STM8SPLNB1 YES STM8TL52F4 YES STM8TL52G4 YES STM8TL53C4 YES STM8TL53F4 YES STM8TL53G4 YES Language Compiler Company Option Comment C STM8 Cosmic Software ELF DWARF C STM8 IAR Systems AB ELF DWARF C STM8 Raisonance ELF DWARF C STM8 Small Device C Compiler ELF DWARF CPU ICE FIRE ICD DEBUG ICD MONITOR ICD TRACE POWER INTEGRATOR INSTRUCTION SIMULATOR ...

Page 23: ...8 Debugger for STM8 ICD supports STM8 includes software for Windows Linux and MacOSX requires Power Debug Module LA 2731 CONV ARM20 STM8 4 Converter ARM20 to STM8 4 Pin Connector supports STM8 4 pin connector Order No Code Text LA 2719 DEBUG STM8 DebuggerforSTM8 ICD LA 2731 CONV ARM20 STM8 4 ConverterARM20toSTM84PinConnector ...

Reviews: