Issue started with a dead battery, so I replaced it being several years old and several days later it was drained. Charged the battery and switch to start was not engaging until you giggle the key. Cleaned the key switch, had a new key programmed and off to the trails. Cranked fine, and about four miles from the truck it backfired and died. Battery was dead, had a jump pack, but would not crank, engine light was blinking, so I towed it back. After checking the connections, changing the 5 amp ignition switch fuse and charging the battery, it cranked fine. No P codes but the (I) light is flashing. This is a 2012 XMR. HELP, and suggestions. I have read several topics that the key switch was the issue.