无法调试我的微观

时间:2017-07-17 19:16:59

标签: embedded stm32

由于我将stm32cubef1固件版本上传到1.6.0,我无法再调试我的主板。我使用的是SWSTM32和ST-LINK / V2。 一旦我按下"播放"比如按钮,当我试图阻止它打开一个Windows时它会说:

"No source available for "dt_TPS()at 0x20000004"

其中dt_TPS是我的变量之一。 在页面底部的窗口中,我读到了这个:

Open On-Chip Debugger 0.10.0-dev-00302-gc211ca5-dirty (2017-07-03-10:41)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : clock speed 1000 kHz
Info : STLINK v2 JTAG v28 API v2 SWIM v6 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 3.239921
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : STM32F105R8Tx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
STM32F105R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x200001e0 msp: 0x20005000
Info : device id = 0x10016418
Info : flash size = 64kbytes
STM32F105R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x200001e0 msp: 0x20005000
STM32F105R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x200001e0 msp: 0x20005000
Info : Padding image section 0 with 4 bytes
STM32F105R8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20005000
STM32F105R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x200001e0 msp: 0x20005000
Error: address + size wrapped(0xffffffff, 0x00000004)
Error: address + size wrapped(0xffffffff, 0x00000002)
Error: address + size wrapped(0xffffffff, 0x00000004)
Error: address + size wrapped(0xffffffff, 0x00000002)

其他信息:我目前的工具链是:AC6 STM32 MCU GCC,当前构建器:Gnu Make Builder和我使用的micro是STM32F105R8T6 有谁知道发生了什么?

1 个答案:

答案 0 :(得分:0)

您似乎是从SRAM执行代码而不是闪存。这是不寻常的,也可能不是故意的。

当BOOT0和BOOT1引脚都为高电平时,处理器将在复位时从SRAM执行。通常你从闪存加载并执行代码(BOOT0为低电平,BOOT1不关心) - 你的电路板可能有跳线用于引导模式选择。

相关问题