OG-Lou, my check engine light came on this afternoon and then disappeared before I could even drive to Autozone for the code read- but P0340 showed up in the OBD history when they pulled it! Your dedication to this error is incredible, thank you so much for the intense writeup! I will be interested to hear what solves your problem and if my error comes back.