Tempest
What is PDI
The component in the MCU
The instruction set
LDS
LD
STS
ST
LDCS
REPEAT
STCS
KEY
Size Rules
Pointer Rules
PDI Registers
Status Register
Reset Register
Control Register
Register r3
Register r4
Native PDI protocol
JTAG-PDI protocol
The TAP instruction register
Identification (IR = IDCode)
PDI Mode (IR = PDI)
PDI Frame Format
The conversation, a worked example
Memory Map
Processor Controller
Breakpoint Unit
Data Memory
Programming
Debugging using PDI
Getting started
Initiating a debug session
Put the processor into reset
Turn the debug interface on
Take the reset processor and put it in debug pause state
Running the processor to an address
Set up run-to-address
Set the program counter to a specific address
Run the program to breakpoint
Clean up
Reading processor state
Read program counter (PC+1)
Clean up verification
Read back Stack Pointer + SREG
Verify state
Reading back the AVR registers
Single Stepping
Setting up the breakpoint
License
CC-BY-SA 2.0
Contributors
Tempest
Programming
View page source
Programming