- 简介
swd 和jtag 一样,都是调试接口.
- 参考资料
https://static.docs.arm.com/ihi0031/c/IHI0031C_debug_interface_as.pdf
https://www.arm.com/files/pdf/Serial_Wire_Debug.pdf
https://www.veryarm.com/113061.html
https://github.com/MarkDing/swd_programing_sram
- 读写时序
IHI0031C_debug_interface_as.pdf
从4.3 看,可以看到读数据时序,和写数据时序
搜索 rising , 可以看到 上升沿采样
- 线上的数据
通过 st-flash write $(BUILD_DIR)/$(TARGET).bin 0x8000000 下载bin文件到flash
cd01 0008 为 .bin 文件中的最后一个字节.
cd01 0008 在 线上的时序 为 b3800010 ,然后经过 32bit 翻转之后得到 080001cd
上升沿采样.
- 密集区为数据操作区
- 初始化阶段