BDM (background debugging mode) of Motorola 68HC12 processors is

The BDM interface is used either for HC12 microcontroller program debugging as for programming of their FLASH memories. BDM is the most convenient way to program internal FLASH memory of HC12, but it is also able to program external memories, which are found eg. on some development boards.

BDM podex Scheme:

Scheme

BDM podex firmware source :

BDM podex firmware:

BDM software for read/write EEPROM , FLASH: