今天下载最新的trueStudio 9.0.1 开始调试stm32f10x, 发现debug不能启动 问题描述: 硬件环境:jlink 软件环境:ubuntu+trueStudio9.0.1 运行步骤:使用STM32F10x_StdPeriph_Driver,写了一个简单的测试工程,开始跑马灯,trueStudio开始调试非常完美,可是下午突然调试异常,我只是调试,没有更改任何配置相关文件.感觉应该是trueStudio的bug 调试错误信息如下: SEGGER J-Link GDB Server V6.30k Command Line Version JLinkARM.dll V6.30k (DLL compiled Apr 9 2018 18:33:07) Command line: -port 2331 -s -CPU Cortex-M -device STM32F100C8 -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: STM32F100C8 Target interface: JTAG Target interface speed: 4000kHz Target endian: little Connecting to J-Link... J-Link is connected. Firmware: J-Link ARM V8 compiled Dec 1 2015 11:42:48 Hardware: V8.00 S/N: 20080643 Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull Checking target voltage... Target voltage: 3.32 V Listening on TCP/IP port 2331 Connecting to target... *** J-Link V6.30k J-Link V6.30k Warning *** You are using a J-Link which does not have intelligence for the selected CPU core (Cortex-M3) in the firmware. Intelligence in the firmware enables J-Link to generate sequences for the CPU core. Without this feature, all sequences are generated by the PC. Intelligence in the firmware allows higher target interface speeds and significantly enhances both speed and stability of the communication with the target CPU. You can use this J-Link with your target CPU, but we recommend using a newer model of J-Link / J-Trace. *** J-Link V6.30k J-Link V6.30k Warning *** J-Link found 2 JTAG devices, Total IRLen = 9 JTAG ID: 0x3BA00477 (Cortex-M3) Connected to target Waiting for GDB connection...Connected to 127.0.0.1 Reading all registers GDB closed TCP/IP connection Restoring target state and closing J-Link connection... Shutting down... 请问有人遇到同样问题吗?求解 |
问题解决了,我使用同事的环境调试了下,发现他的环境可以调试,确定硬件没有问题,然后从新放到我的环境中调试,神奇的事情发生了,调试通过了.不在报错了.
问题可能的原因:
1/可能是某个线没有插好
2/可能是开发环境的某个bug
所以出现类型情况,首先需要确定线的链接,然后就是换个电脑试试.
-------------------------------------------------
继续更新
shutdown 问题继续出现,这次确定不是线路链接问题,应该是trueStudio的bug,必须使用别人的环境,才能重置debug.希望trueStudio能看到这个问题
---------------------------------------------------
再次更新
卸载trueStudio9.0.1,使用trueStudio 9.0.0, 问题解决
评分
查看全部评分
评分
查看全部评分