ENGINE STALLS

My 90 BMW 325I starts fine when engine is cold. After driving for 5-10mins, the engine will stall, usually when I stop, but has occured while driving. Will start after 4-5 attempts at starting. Sometimes I have to wait 10-20min. Check engine light is blinking.