ubuntu 设置OpenOCD与RT-RT-thread情况的记载

打印 上一主题 下一主题

主题 1044|帖子 1044|积分 3132

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
1.git clone git://git.code.sf.net/p/openocd/code openocd
设置gcc编译情况
2.
sudo gedit /etc/apt/source.list #cdrom
sudo apt-get install git 
sudo apt-get install libtool-bin
sudo apt-get install pkg-config
sudo apt-install libusb-1.0-0-dev
sudo apt-get install libcapstone-dev
sudo apt-get install libhidapi-dev
sudo apt-get install libgpiod-dev
sudo apt-get install libftdi-dev
sudo apt-get install libftdi1-dev
sudo apt-get install libjaylink-dev
sudo apt install make
3.
 ./bootstrap 
4../configure --prefix=/home/archermind/2025-01/test_openocd/open_ocd_bin  --disable-werror --enable-ftdi --enable-cmsis-dap --enable-jlink=yes

./configure --prefix=/home/archermind/2025-01/test_openocd/open_ocd_bin  --disable-werror --enable-ftdi --enable-cmsis-dap --enable-jlink=yes --enable-internal-libjaylink

OpenOCD configuration summary
--------------------------------------------------
MPSSE mode of FTDI based devices        yes
ST-Link Programmer                      yes (auto)
TI ICDI JTAG Programmer                 yes (auto)
Keil ULINK JTAG Programmer              yes (auto)
ANGIE Adapter                           yes (auto)
Altera USB-Blaster II Compatible        yes (auto)
Bitbang mode of FT232R based devices    yes (auto)
Versaloon-Link JTAG Programmer          yes (auto)
TI XDS110 Debug Probe                   yes (auto)
CMSIS-DAP v2 Compliant Debugger         yes (auto)
OSBDM (JTAG only) Programmer            yes (auto)
eStick/opendous JTAG Programmer         yes (auto)
Olimex ARM-JTAG-EW Programmer           yes (auto)
Raisonance RLink JTAG Programmer        yes (auto)
USBProg JTAG Programmer                 yes (auto)
Espressif JTAG Programmer               yes (auto)
CMSIS-DAP Compliant Debugger            yes
Nu-Link Programmer                      yes (auto)
Cypress KitProg Programmer              yes (auto)
Altera USB-Blaster Compatible           yes (auto)
ASIX Presto Adapter                     yes (auto)
OpenJTAG Adapter                        yes (auto)
Linux GPIO bitbang through libgpiod     no
SEGGER J-Link Programmer                yes
Xilinx XVC/PCIe                         yes (auto)
Bus Pirate                              yes (auto)
Dummy Adapter                           yes (auto)
Use Capstone disassembly framework      no
Collect coverage using gcov   

5.
make install
6.
sudo apt install scons
sudo apt-get install libncurses5-dev
scons --menuconfig
xuxd@xuxd-virtual-machine:~/rt-thread/bsp/stm32/stm32f334-st-nucleo$ 
xuxd@xuxd-virtual-machine:~/rt-thread/bsp/stm32/stm32f334-st-nucleo$ pwd
/home/xuxd/rt-thread/bsp/stm32/stm32f334-st-nucleo
xuxd@xuxd-virtual-machine:~/rt-thread/bsp/stm32/stm32f334-st-nucleo$ 
xuxd@xuxd-virtual-machine:~/rt-thread/bsp/stm32/stm32f334-st-nucleo$ scons --menuconfig
 
CC /home/xuxd/rt-thread/bsp/stm32/libraries/HAL_Drivers/drivers/drv_gpio.o
CC /home/xuxd/rt-thread/bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.o
AS /home/xuxd/rt-thread/bsp/stm32/libraries/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/gcc/startup_stm32f334x8.o
LINK rt-thread.elf
Memory region         Used Size  Region Size  %age Used
             ROM:       47588 B        64 KB     72.61%
             RAM:        4332 B        12 KB     35.25%
arm-none-eabi-objcopy -O binary rt-thread.elf rtthread.bin
arm-none-eabi-size rt-thread.elf
   text       data        bss        dec        hex    filename
  47588       1756       2572      51916       cacc    rt-thread.elf
scons: done building targets.
xuxd@xuxd-virtual-machine:~/rt-thread/bsp/stm32/stm32f334-st-nucleo$ scons -j8
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

莫张周刘王

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表