Accessing Adapt912 Expanded Memory
with a D-Bug12 BDM Pod
When you use a D-Bug12 BDM pod with
any Adapt912-family target board, you should first reset the target board
with MOD and MODB jumpered to single-chip mode (ie. both at 0). Then,
to access external memory, you write to the PEAR, MODE, (and possibly MISC)
registers to switch on the external memory bus, after which you can use
the DBug12 commands as you would on internal memory. If you're using
wide mode (eg. Adapt912MX1 RAM board), you would enter the following commands:
mm a c
mm a c (write
PEAR twice because it "takes" anytime but the first time)
mm b 7b
mm b 7b (write
MODE twice because it "takes" anytime but the first time)
mm 13 0 (turn
off ROM/Flash blocks and set 0 clock stretch)