I've had similar problems in the past in my former Avalanche using an iPhone 3gs and playing music while using a nav program called GPS Drive. Between playing music and downloading maps it was draining enough power that it wouldn't charge. It also got pretty hot. I was told that was really hard on the battery life so I switched to Navigon and never had that problem again. Do you have anything running in the background?