Pepin of Aquitaine died in 838 , whereupon Charles at last received that kingdom , although Pepin 's son Pepin II would be a perpetual thorn in his side .
Pepin of Aquitaine died in 838 , whereupon Charles became king .