2017-09-21 56 views
3

我有一個設置與openocd和arm-none-eabi-gdb,我試圖調試FreeRTOS fw。openocd freertos意識無法啓動gdb

我開始用OpenOCD的:

openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto" 

該命令工作正常。

然後我跑arm-none-eabi-gdb -tui,並在我的.gdbinit結束時,我有:

target remote localhost:3333 
monitor reset halt 
file build/fw.elf 
load 
continue 
focus next 

但是,當我試圖阻止<ctrl>-c並開始continue我的防火牆我得到的是錯誤:

Cannot execute this command without a live selected thread. 

我錯過了什麼?

我正在使用JLink Base調試探針。

+0

您是否發現此問題的任何解決方案?我面臨同樣的問題,並找不到任何解決方案 – LoPiTaL

+0

看起來與這個問題有關:https://mcuoneclipse.com/2016/10/23/workaround-for-error-in-final-launch-sequence-cannot-execute - 這個指令,而無需-A-活選定的線程/ – ks1322

回答

0

我的情況比你有點不同,使用QtCreator及其Baremetal插件的設置,卻發現一個bug報告,他們說出一個解決辦法:

https://bugreports.qt.io/browse/QTCREATORBUG-18436

解決方法是相當簡單:

in GDB Init commands add "info threads" after load command. It fixes issue. 

我試過了,它工作,錯誤信息被刪除,現在我可以在FreeRTOS中看到不同的任務。