I have the same vehicle and issue. Found this on another page and now perform it after every oil change.
Resetting ECU and FUEL pump MAY help in cutting down on that horrible tapping noise that the D40 suffers from. Also removes limp mode
I’ve carried out this reset and the engine is alot smoother, more responsive, less smokey and alot less tappy.
To carry out the reset do the following
Turn ingnition on so all dash lights come on.
Wait 3 seconds
PUMP accelerator pedel 5 times within 5 seconds....
with foot now OFF accelerator wait 7 seconds...
After 7 seconds press and hold down accelerator pedel for 10 seconds...
Atfer 10 seconds the Engine Managment Light will start to flash, at this point remove foot from accelerator.
The computer is now in diagnostic mode, so let the EML flash for a bit.
The press and hold the acclerator pedel down for more than 10 seconds. This will then reset ECU and fuel pump etc......and put them into learning mode.
IMPORTANT My mechanic told me to do this with a warm engine and then go for a for 20 minute drive.
NOTE: When the EML light is flashing, this is listing possible fault codes... so if you know how to read the fault codes or know the sequences then you can figure out any possible faults with your Nav with out getting the dealer to do it!!
good luck