I successfully ran the examples up to and including 3.0 which uses the UART.
These comment relate to example 3.0 which I modified. The example can be found here:
http://www.eevblog.com/forum/microcontrollers/pic32mx-quickstart/msg113629/#msg113629
The wiring was essentially as shown in the guide. I put in the capacitors and resistors.
I left off the switch. I simply used a jumper and that worked.
A meter showed me that pin 21 off the PIC was the Tx and pin 22 was the RX. I'll have a closer look at that as that is not what the schematic showed.
Something was killing my power supply board if I disconnected the PICkit3 with the IDE open and the power supply board switched on. I found that could be avoided by turning the power off before disconnecting the PICkit3.
So far I like the guide and the set of steps it goes through.
The peripheral library seems to be more purposely thought out than the PIC18F peripheral library. Actually the only thing so far I have not liked is the fact that Microchip is not recommending the peripheral library for new projects.
For example with this library I can change the baud rate by simply saying
#define BaudRate 115200 // This is one thing I changed
and using the functions as in the guide
// Configure UART2
UARTConfigure(UART2, UART_ENABLE_PINS_TX_RX_ONLY);
UARTSetLineControl(UART2, UART_DATA_SIZE_8_BITS | UART_PARITY_NONE | UART_STOP_BITS_1);
UARTSetDataRate(UART2, GetPeripheralClock(), BaudRate);
UARTEnable(UART2, UART_ENABLE_FLAGS(UART_PERIPHERAL | UART_RX | UART_TX));
One other thing I changed in example 3.0 was I added a CR and LF before the Hello World as I was getting a glitch when power was cycled otherwise.
before change
▒ello World!
▒ello World!
▒ello World!
▒ello World!
after change
Hello World!
Hello World!
Hello World!
I tried using printf(). Screen shot here...