Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
1.02k stars 240 forks source link

st-trace read_trace error #995

Open linuxguy123 opened 8 months ago

linuxguy123 commented 8 months ago

board: Nucleo STM32F767 Clock frequency: 96 MHz.
image

Interface: onboard STLink

$ st-info --probe
Found 1 stlink programmers
  version:    V2J39S27
  serial:     066DFF574887534867083444
  flash:      2097152 (pagesize: 2048)
  sram:       524288
  chipid:     0x451
  dev-type:   STM32F76x_F77x

Host: Fedora 39 (See details below)

Driver:

$ dnf list stlink
Last metadata expiration check: 0:00:39 ago on 2024-03-12T10:53:04 MDT.
Installed Packages
stlink.x86_64                                                  1.8.0-1.fc39 

Issue:

me@workstation1:~$ st-trace --clock=96m
2024-03-12T10:54:21 INFO common.c: STM32F76x_F77x: 512 KiB SRAM, 2048 KiB flash in at least 2 KiB pages.
2024-03-12T10:54:21 INFO trace.c: Trace Port Interface configured to expect a 96000000 Hz system clock.
2024-03-12T10:54:21 INFO trace.c: Trace frequency set to 2000000 Hz.
2024-03-12T10:54:21 INFO trace.c: Reading Trace
libusb: error [submit_bulk_transfer] submiturb failed, errno=22
2024-03-12T10:54:21 ERROR usb.c: read_trace read error -1
2024-03-12T10:54:21 ERROR trace.c: Error reading trace (-1)

Also:

st-trace --clock=96m --trace=1m
2024-03-12T10:58:39 INFO common.c: STM32F76x_F77x: 512 KiB SRAM, 2048 KiB flash in at least 2 KiB pages.
2024-03-12T10:58:39 INFO trace.c: Trace Port Interface configured to expect a 96000000 Hz system clock.
2024-03-12T10:58:39 INFO trace.c: Trace frequency set to 1000000 Hz.
2024-03-12T10:58:39 INFO trace.c: Reading Trace
libusb: error [submit_bulk_transfer] submiturb failed, errno=22
2024-03-12T10:58:39 ERROR usb.c: read_trace read error -1
2024-03-12T10:58:39 ERROR trace.c: Error reading trace (-1)

Operating System: Fedora Linux 39 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.12 Kernel Version: 6.7.7-200.fc39.x86_64 (64-bit) Graphics Platform: X11 Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor Memory: 62.7 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2