專注電子技術(shù)學(xué)習(xí)與研究
當(dāng)前位置:單片機(jī)教程網(wǎng) >> MCU設(shè)計(jì)實(shí)例 >> 瀏覽文章

關(guān)于在eclipse中調(diào)試stm32的djyos工程

作者:佚名   來源:轉(zhuǎn)自李夜雪幽夢(mèng)空間   點(diǎn)擊數(shù):  更新時(shí)間:2014年08月29日   【字體:

    djyos作者寫了在eclipse中調(diào)試2440,但沒有說如何調(diào)試stm32,對(duì)于像我這樣的小白來說確實(shí)走很多彎路,現(xiàn)在我把相關(guān)的過程記下來,供自己以后參考。

1、打開djyos作者的工程,如下圖

2.點(diǎn)擊下圖的小錘子,或者project中的build all,編譯工程

3.點(diǎn)下圖的那個(gè)蟲子在里面選Debug Configurations...
 
3.
4、打開后雙擊GDB hardware debugging會(huì)出現(xiàn)下面的界面,將相關(guān)參數(shù)填寫好
5、點(diǎn)擊下圖的select other,選擇 using standard gdb hardware debugging launcher
6、點(diǎn)擊debugger進(jìn)入如下界面,并配置好
7、點(diǎn)startup進(jìn)入下一界面,如下3個(gè)圖,其中initialization commands 填入的是
monitor speed 30
monitor endian little
monitor flash device = STM32F103RB
monitor reset 
monitor speed auto 
其它的按圖配置好就行了






8,給板子上電,打開jlink-gdb-server,點(diǎn)擊Debug,就可以調(diào)試?yán)?/div>