BMW Questions? Ask a BMW Repair Expert for Answers.
The p0015 would be your indicator. The timing is off causing this fault. See a lot of these issues with poor oil maintenance causing the variable valve timing to stick and throw misfire codes, rough idle, and some clatter. I would run some marvel mystery oil in it with some cheap oil and the change it out after say about an hour of run time ans some trips around the block if its driveable. Good miles and you have purchased so I am guessing it seems to run okay?
Hope this helps keep me posted I will be working today and be home later this evening to respond.