The AN3275 bootloader app derives most of its processor-specific addresses from a file, S12Derivative.h. This file is based on the MC9S12DP256.h header file. I would use the MC9S12XD512.h header file and compare its addresses to the one in S12Derivative.h. Make any changes where necessary, and build. As its name implies, the code has been factored to make it easy to adapt the bootloader to other S12 derivatives.
---Tom