rtel wrote on Saturday, March 05, 2011:
> I am using FreeRTOS demo program for PIC32MX360F512L
The demos that come with the book are targeted at the PIC32 USB-II starter kit. That has a PIC32MX795F512L part, which is newer than the PIC32MX360 series. The newer part require one extra configuration option to function, and I’m not sure if that configuration option would prevent the older parts from working. To test this theory, simply remove the line:
#pragma config FSRSSEL = PRIORITY_7
> and “printf” is
> not working.
The demos should be completely configured for printf() to output to an MPLAB window. The call to DBINIT() within vSetupEnvironment(), called from main() configures this for you.
Finally, if you are using the very latest C30 version then the libraries changed the default output buffering from line buffered to no buffering. This would not prevent output being generated, but does make it very slow. I updated the book demos to include a call to vSetIOBuffering() - so check your book demos have this call.
Hope this helps.