The first thing you should do is to mount the STK504 onto the STK500.
Turn off the power on STK500
Remove any other top card from the STK500
Remove any AVR mounted in any of the sockets on the STK500
Place the STK504 on top of the STK500. Make sure the EXPAND0 and EXPAND1 connectors on both cards align properly (see Figure 1)