A defective EGR valve can cause a popping or knocking noise from the engine compartment. It is usually heard when the engine is warm (between 1600 and 1800 RPM).