Need more details here. Did you have to collect luggage at LHR then check-in? Why didn't you have a boarding pass already? Where about in LHR did you arrive at 40 minutes before departure?
My guess is it must have been on separate tickets probably with the TATL sector being on a non BA flight. If so you'll be wasting your time getting in touch with CS as you must have arrived too late.