我看到
STM32CubeIDE v1.3.0 的发布文档说支持使用 JLink 调试器。所以我尝试在我的电脑上使用 JLink 和 STM32CubeIDE v1.3.0(操作系统是 Debian 9)。但是我看到控制台有一些错误。它显示无法检测到 MPU 内核。下面是调试信息
- SEGGER J-Link GDB Server V6.62 Command Line Version
- JLinkARM.dll V6.62 (DLL compiled Jan 24 2020 16:34:42)
- Command line: -port 2331 -s -device STM32MP157CACx -endian little -speed 4000 -vd
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 2331
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: yes
- Generate logfile: off
- Verify download: on
- Init regs on start: off
- Silent mode: off
- Single run mode: on
- Target connection timeout: 0 ms
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: STM32MP157CACx
- Target interface: JTAG
- Target interface speed: 4000kHz
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Failed to set device (STM32MP157CACx). Unknown device selected?ERROR : Failed to set device.
- Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
- Hardware: V9.60
- S/N: 55623165
- Feature(s): GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
- Checking target voltage...
- Target voltage: 3.39 V
- Listening on TCP/IP port 2331
- Connecting to target...
- ERROR: No CPU core or target device has been selected. Please make sure at least the core J-Link shall connect to, is selected.
- ERROR: Could not connect to target.
- Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
- Shutting down...
- Could not connect to target.
- Please check power, connection and settings.