Oh...
I wrangled with some PIC24F for more than a week, blinky, no problem, UART working, nah, not this week, opened tickets, posted in the forum supposed working code for the 128Kb flash version never worked in my 64Kb flash model, tried lots of things, crystal, no crystal, libraries, direct register banging, using the microchip blabla.blablaBITS = something, the micro as soon as I put a char in the uart register just froze, no more breakpoints, it was also wiggling a pin, the pin would always stop wiggling, nobody could find the problem, the solution was to use another micro, I had 3 samples directly from microchip, where they faulty?
I don't know but I have a nice 55€ PicKit3 paper weight that as also gave me hours of head banging, I have some older version that only works when it feels like its in the mood, the stupid standalone program to use it keeps crashing and barfing java errors.
Atmel is feeding me up, they are ultra expensive for reduced peripherals, ST and Cypress Psocs are just a world apart all that crap.