EasyManuals Logo

ST STM32WL5 Series User Manual

ST STM32WL5 Series
1461 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1400 background imageLoading...
Page #1400 background image
Debug support (DBG) RM0453
1400/1461 RM0453 Rev 1
1. Software trace
Software can write directly to any of 32 x 32-bit ITM stimulus registers to generate
packets. The permission level for each port can be programmed. When software writes
to an enabled stimulus port, the ITM combines the identity of the port, the size of the
write access and the data written, into a packet that it writes to a FIFO. The ITM outputs
packets from the FIFO onto the trace bus. Reading a stimulus port register returns the
status of the stimulus register (empty or pending) in bit 0.
2. Hardware trace
The DWT generates trace packets in response to a data trace event, a PC sample or a
performance profiling counter wraparound. The ITM outputs these packets on the trace
bus.
3. Local timestamping
The ITM contains a 21-bit counter clocked by the (pre-divided) processor clock. The
counter value is output in a timestamp packet on the trace bus. The counter is reset to
zero every time a timestamp packet is generated. The timestamps thus indicate the
time elapsed since the previous timestamp packet.
38.10.1 ITM stimulus register x (ITM_STIMRx)
Address offset: 0x000 + 0x004 * x, (x = 0 to 31)
Reset value: 0xXXXX XXXX
38.10.2 ITM trace enable register (ITM_TER)
Address offset: 0x080
Reset value: 0x0000 0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
STIMULUS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
STIMULUS[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 STIMULUS[31:0]: Write data is output on the trace bus as a software event packet.
When reading, bit 0 is a FIFOREADY indicator:
0: Stimulus port buffer is full (or port is disabled).
1: Stimulus port can accept new write data.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
STIMENA[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
STIMENA[15:0]
rrrrrrrrrrrrrrrr

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32WL5 Series and is the answer not in the manual?

ST STM32WL5 Series Specifications

General IconGeneral
BrandST
ModelSTM32WL5 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals