使用stm32cubeide 编写一个简单的跑马灯程序,直接卡在了本地gdb调试那里
- SEGGER J-Link GDB Server V6.44c Command Line Version
- JLinkARM.dll V6.44c (DLL compiled Mar 22 2019 17:26:40)
- Command line: -port 2331 -s -device STM32F407ZG -endian little -speed 500 -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: localhost only
- 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: STM32F407ZG
- Target interface: JTAG
- Target interface speed: 500kHz
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
- Hardware: V8.00
- S/N: 17935099
- Feature(s): RDI,FlashDL,FlashBP,JFlash
- Checking target voltage...
- Target voltage: 3.31 V
- Listening on TCP/IP port 2331
- Connecting to target...
- J-Link found 2 JTAG devices, Total IRLen = 9
- JTAG ID: 0x4BA00477 (Cortex-M4)
- Connected to target
- Waiting for GDB connection...Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
- Read 2 bytes @ address 0x08000878 (Data = 0xF000)
- Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
- Read 4 bytes @ address 0x080008D2 (Data = 0x0016BD70)
- Reading 64 bytes @ address 0x00000000
- GDB closed TCP/IP connection
复制代码
|
JTAG ID: 0x4BA00477 (Cortex-M4)
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
Read 2 bytes @ address 0x08000878 (Data = 0xF000)
Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
Read 4 bytes @ address 0x080008D2 (Data = 0x0016BD70)
Reading 64 bytes @ address 0x00000000
GDB closed TCP/IP connection
从这里看出,你的j_link找到两个设备,一个是通过TCP/IP连接的,一个是硬件连接,127.0.0.1看看这个IP是什么,连接了什么东西
评分
查看全部评分