330 likes | 1.1k Views
ARM Serial Wire Debug (SWD) & Debug Access Port (DAP). A quick overview! ( Be warned you may need to read the Manual ). Presentation Overview. What is SWD and the DAP? SWD Write Operations SWD Read Operations. SWD and DAP. Embedded Core Debug Functionality System Debug Functionality.
E N D
ARM Serial Wire Debug (SWD) & Debug Access Port (DAP) A quick overview! (Be warned you may need to read the Manual)
Presentation Overview • What is SWD and the DAP? • SWD Write Operations • SWD Read Operations
SWD and DAP • Embedded Core Debug Functionality • System Debug Functionality
Incremental SWD write operation • Writing the kernel to Flash information space. • Similar to previous SWD write procedure. • Write to AP CSW register before the TAR (bits [5:4]). • AP TAR will then auto-increment after each write to DRW. • No need to write to TAR after each write.
Incremental SWD read operation • Reading a block of Memory (SRAM, Flash, etc….) • Similar to previous SWD read procedure. • Write to AP CSW register before the TAR (increment bits [5:4]). • AP TAR will then auto-increment after each read from DRW. • No need to write to TAR after each read. • DUMMY read still active for very first read!!! • Very last read operation is from DP RDBUFF register
SWD crucial to AD7160 success! • SWD enables access to Flash memory • Flash MUST be verified before kernel can be loaded • All Flash test/verification modes are enabled through SWD • Kernel is loaded through SWD into Flash information space • Kernel ‘sign’ in information space is verified through SWD
Conclusion • Overview of SWD & DAP • SWD write operations • SWD read operations