6.5.7.1.5 Write Word
All Flash programming routines are described using word reads and writes. It is much easier to operate at that level.
This is referred to as dap_write_word.
| Steps | rddi_dap |
|---|---|
| Clear sticky bits | WriteDP(DP_ABORT, (ORUNERRCLR | WDERRCLR | STKERRCLR | STKCMPCLR)) |
| Select BANK0 | WriteDP(DP_SELECT, MEMAP_BANK_0) |
| Access size: 32-bit | WriteAP(MEM_AP_CSW, SIZE32) |
WriteAP(MEM_AP_TAR, Address) | |
WriteAP(MEM_AP_DRW, value) | |
| Clear sticky bits | WriteDP(DP_ABORT, (ORUNERRCLR | WDERRCLR | STKERRCLR | STKCMPCLR)) |
