Hi,
You have not given the hardware version you are using so it makes it difficult to be definitive.
Unfortunately, some 9s08 devices cannot be guaranteed to be forced into BDM mode except by a power-on-reset i.e. cycling the power while holding the BGND pin low.
If the hardware you are using does not have a controlled target power supply it may be necessary to manually cycle the power while the BDM keeps BGND low.
The second method given below is NOT guaranteed to work as it is possible on some devices to disable the BGND pin defeating programming. I'm a bit surprised that it happens with blank devices but it may be timing related e.g. a watchdog or illegal instruction reset occurs before the BDM can make a connection and halt the target.
bye
From 9s08 manual:
The method for forcing active background mode depends on the specific HCS08
derivative. For the 9S08xxxx, you can force active background after a power-on reset by
holding the BKGD pin low as the device exits the reset condition. You can also force
active background by driving BKGD low immediately after a serial background
command that writes a one to the BDFR bit in the SBDFR register. Other causes of reset
including an external pin reset or an internally generated error reset ignore the state of the
BKGD pin and reset into normal user mode. If no debug pod is connected to the BKGD
pin, the MCU will always reset into normal operating mode.