The check engine light will not clear itself on an obd2 vehicle (96 and up) without the problem being fixed for several drive cycles (up to 150 miles each) so I recommend buying a cheap scanner or code reader/clearer and manually clearing the codes. If the problem is still there it may come right back on if it is bad enough or it may not reappear for several drive cycles.
Taken straight from AllData this may help (I doubt the diagrams will appear but the text should be helpful)
DTC P0401 Exhaust Gas Recirculation Flow Insufficient Detected
CIRCUIT DESCRIPTION
The EGR system recirculates exhaust gas, which is controlled to the proper quantity to suit the driving conditions, into the intake air mixture to slow down combustion, reduce the combustion temperature and reduce NOx emissions. The amount of
EGR is regulated by the EGR vacuum modulator according to the engine load.
If even one of the following conditions is fulfilled, the VSV is turned ON by a signal from the
ECM. This results in atmospheric air acting on the
EGR valve, closing the EGR valve and shutting off the exhaust gas (
EGR cut-off).
Under the following conditions,
EGR is cut to maintain driveability.
- Before the engine is warmed up.
- During deceleration (throttle valve closed).
- Light engine load (amount of intake air very small).
- Engine racing.
DETECTING CONDITION
WIRING DIAGRAM
SYSTEM CHECK DRIVING PATTERN
(1)Connect the OBD II scan tool or TOYOTA hand-held tester to the
DLC3.(2)Start and warm up the engine with all accessories switched OFF.(3)Run the vehicle at 70 ~ 90 km/h (43 ~ 56 mph) for 3 minutes or more.(4)Idle the engine for about 2 minutes.(5)Stop at safe place and turn the
ignition switch OFF.(6)Start the engine and do steps (3) and (4) again.(7)Check the "READINESS TESTS" mode on the OBD II scan tool or TOYOTA hand-held tester. If "COMPL" is displayed and the
MIL does not light up, the system is normal. If "INCMPL" is displayed and the MIL does not light up, run the vehicle again and check it.
HINT: "INCMPL" is displayed when either condition (a) or (b) exists.
(a)The system check is incomplete.(b)There is a malfunction in the system.
If there is a malfunction in the system, the
MIL will light up after steps (2) to (6) above are done.
INSPECTION PROCEDURE
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
TOYOTA hand-held tester
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
OBD II scan tool (excluding TOYOTA hand-held tester)