- 簡介
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
上升沿採樣.
- 密集區爲數據操作區
- 初始化階段