I have a custom board (PIC32) that should be quite similar to the Explorer 16 in terms of the UART. have a simple task that turns an LED on and off every second. Just a visual hearbeat :) I am trying to configure UART. When I call ConfigIntUART2 as follows:
One more thing. Here is the code from the xSerialPortInitMinimal function. It turns out I must have lied earlier… leaving out the UART_INT_SUB_PR0 or’ing now does not seem to matter. the flasher task does not run. If I comment out the call to ConfigIntUART2 then, the flasher task runs. Obviously, I am screwing up interrupts somehow……
/* Create the queues used by the com test task. */
xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );
xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );
I *thought* it was a self inflicted wound, but now I have my doubts. the custom board uses the PIC32MX795F512L and the Explorer 16 uses PIC32MX360F512L. I would bounce back and forth between boards to try and make sense of my problem. It turns out that the custom board works if I leave it configured for the PIC32MX360F512L!!!!!! I suspect that the 795 is so new, there are bugs in MPLAB when configuring the chip. there is a new version of MPLAB and I will try it.
The 795 has an updated core compared to the 360 and requires an extra configuration parameter. I use the following on the 795 to configure the device from the source code (rather than through MPLAB).
I upgraded to the latest MPLAB 8.66 and that did not help. It has dawned on me that maybe since the demo I am running was created for the PIC32MX360F512L, is there something I need to change in the source somewhere to work correctly for the PIC32MX360F512L?
Any help would be appreciated.
I think our two last posts crossed on the internet, so ignore my last post, you answered it.
I put those 3 pragma lines in my main and it made no improvement. I am still not sure how to get the system configured for the 795…. any other ideas?