E39A CAN, BAM,JTAG explained.

If the ECU E39A is bricked you need to use BAM to restore it. If you want to use JTAG to gain faster access you need to modify the shadow to be able to use JTAG.