Connect battery positive voltage to terminal A and ground to terminal B of the blower motor and verify its operation.
Mazda 6 Service Manual: Windshield Defrosting and Defogging
Press the windshield defroster switch. In this position, the outside air position
is automatically selected, and the air conditioner automatically turns on. The air
conditioner will directly dehumidify the air to the front windshield and side windows.
Airflow amount will be increased.
WARNING
...
Mazda 6 Service Manual: Immobilizer system reprogram procedure
Note
When an error occurs during the reprogram procedures, except when
the PCM is replaced, repeat the procedure from Step 1. If you still cannot
reprogram, confirm how many keys can start the engine. Then, perform the key
replacement or addition reprogram procedure according to the val ...