ubuntu 配置OpenOCD与RT-RT-thread环境的记录

1.git clone git://git.code.sf.net/p/openocd/code openocd

配置gcc编译环境

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

./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

make install

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

相关推荐
一个有温度的技术博主19 分钟前
Linux 核心命令速查指南:从文件操作到系统运维
linux·服务器
小小的木头人38 分钟前
Docker 环境下迁移 containerd 数据目录:从 `/var/lib/containerd` 到 `/data/containerd`
linux·docker
天远数科1 小时前
零信任架构实战:基于天远全能消金报告构建自动化信贷评估网关
运维·人工智能·架构·自动化
东城居士1 小时前
验证第一个Linux字符驱动程序
linux·嵌入式系统
网硕互联的小客服4 小时前
各个版本的Linux系统如何修改远程端口ssh端口?
linux·运维·服务器·网络
T1mzhou4 小时前
ARM64 Linux 6.10 内核驱动(12):dd.c:probe/ remove、延迟 probe
linux·服务器·c语言·arm开发·arm
Mr小林5 小时前
Docker 安装教程(在线 + 离线)
运维·docker·容器
JudithHuang6 小时前
把本地服务暴露到公网
运维
yt004yt7 小时前
### 越华环保集团|绿岛 VOCs 集中治理,管网系统安全设计工程实战分享
大数据·运维
yt004yt7 小时前
越华环保集团|绿岛 VOCs 集中治理,管网系统安全设计工程实战分享
大数据·运维