Forums and example projects are your new best friends. Always boil down the problem to the stupidest, simplest version and work up from there. In your case, it's a bare sample application board (see XPLAINED series from Atmel and various other equivicancies from other vendors... yes they're "expensive" but spending 200 bucks to get a demonstration / samples that run through all the functionality on the board is well worth everyone's time. Remember that 200 bucks is less than half a day billing, so it really puts things in perspective). Any small link failing anywhere results in a binary 0 success rate. Embedded stuff is absolutely brutal that way (see how often you confound ~ with ! and throw your computer at the wall after hours of straining eyeballs). Work up from examples. Work up from forums.