Truck takes awhile to start, any ideas what is causing this? on 2008 Chrysler Aspen

When I go to start my truck it makes a strange sound, sorta like the sound you'd here if the battery was dead, its takes some time but the truck eventually starts, and the runs ok. Check engine light is on, and my traction light is on. Any ideas as to what is causing this?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer 1 comment
have codes scanned at auto zone for free and post so we can adv
these are the codes they gave me tonight P0335
P0521
B121C