If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModeNeutral Switch Removal/Installation [C66 M R]
1. Remove the battery cover..
2. Disconnect the negative battery cable..
3. Remove the aerodynamic under cover No.2..
4. Install in the reverse order of removal.
5. Remove in the order indicated in the table.
6. Install in the reverse order of removal.
1
Neutr ...
Camshaft Position (CMP) Sensor Inspection [Mzr 2.0, Mzr 2.5]
Visual Inspection
CAUTION:
When replacing the CMP sensor, make sure there is no foreign material on
it such as metal shavings. If it is installed with foreign material, the sensor
output signal will malfunction resulting from fluctuation in magnetic flux and
cause a deterioration i ...
Warm Up Three Way Catalytic Converter (Wu Twc) Inspection [Mzr 2.0, Mzr 2.5]
CAUTION:
Perform the following procedures, DTC P0421:00 is indicated only.
1. Connect the M-MDS to the DLC-2.
2. Start the engine and warm it up to normal operating temperature.
3. Turn off the engine.
4. Verify that the engine compression is within the specification..
...