Except B2500, B3000 & B4000
WARNING: This page does not describe the selected car, but rather 7 other vehicles, including the 1998 Mazda Protege, 1998 Mazda Millenia, 1998 Mazda MPV, 1998 Mazda B4000, and 1998 Mazda B3000. However, it is still accessible from the selected car via links, so may be relevant.
Connect jumper wire between GND and F/P terminals of data link connector. See Fig 1. Turn ignition on for about 10 seconds and then off. Disconnect jumper wire.