蓝牙简介

蓝牙简介

蓝牙官网 蓝牙 蓝牙文档 文档 经典蓝牙 Bluetooth Classic无线电,也被称为Bluetooth 基本速率/增强数据速率(BR/EDR),是一种低功率无线电,在2.4GHz非授权工业、科学和医疗(ISM)频段的79个频道上进行数据流。支持点对点设备通信,Bluetooth Classi

printf输出浮点数

printf输出浮点数

Makefile中LDFLAGS参数添加 -u _printf_float 即可 LDFLAGS = $(MCU) -u _printf_float -specs=nano.specs -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(T

调试ESP32

调试ESP32

新建launch.json 在 .vscode目录下新建launch.json文件。 { "version": "0.2.0", "configurations": [

GDB Define Command

GDB Define Command

创建新的用户命令 一次性打印多个变量 (gdb) define my_print > print /d i > print /d j > print /d k > print customer > end (gdb) my_print 这样就可以调用my_print来一次性打印变量。 定义查找功能

GDB TUI 启动报错

GDB TUI 启动报错

GDB TUI 启动报错 如果你使用tmux,那么有可能会在启动gdbtui时报错: cannot enable the tui error opening terminal term=screen-256color 解决 open file ~/.tmux.conf, add following

GDB TUI

GDB TUI

两种方法启用 TUI 进入调试之后输入:tui enable 可以在gdbinit启动文件内追加tui enable 功能 可以使用 箭头 来滚动查看代码。 用list <number>可以将代码显示框定位到<number>附近。 用layout asm可以显示汇编代码。 用layout regs显

GDB Examine(x) Command 命令

GDB Examine(x) Command 命令

用途 打印出对应内存地址的内容。可以用来查看程序中相对应变量的值,还可以调试一些库文件。 X命令打印出的格式 x /nfu <address> Print Memory n: How many units to print f: Format charracter (like print)

GDB display

GDB display

display 命令 display <value>,可以在程序每次暂停时打印变量的值。 display命令也可以设置不同的显示格式 display /t <value> info display 可以查看 display 当前状况 disable display <num> 关闭显示某变量的值。

GDB 断点调试

GDB 断点调试

xtensa-esp-elf-gdb build/blink.elf -x gdninit 启动 gdb 可以看到在gdbinit文件中设置在app_main处的硬件断点已经起了作用。 此处打印出了断点处的代码和断点信息。 list 简化命令:l <