USB Starter Kit 2 FreeRTOS Demo error

I am trying to run the standard demo project for FreeRTOS and I am have received several errors I cannot fix. I am running MPLAB X V3.20, XC32 v1.40, FreeRTOS v9.0.0rc1. The board I am using is the PIC32MX795F512L USB Starter Kit 2. When ever I open the project I get the following errors: Cannot get exclusive access to C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoPIC32MX_MPLABRTOSDemo.Xnbprojectproject.xml@fb765c87:37e72634 (probably opened for reading). To the best of my knowledge, it is not open for reading. I also get the configuration loading errors: warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalblocktim.c” which does not exist in the disk. The make process might not build correctly. warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalcomtest.c” which does not exist in the disk. The make process might not build correctly. warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalsemtest.c” which does not exist in the disk. The make process might not build correctly. warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalQPeek.c” which does not exist in the disk. The make process might not build correctly. warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalIntQueue.c” which does not exist in the disk. The make process might not build correctly. warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalGenQTest.c” which does not exist in the disk. The make process might not build correctly. warning: Configuration “USB-IISTARTERKIT” refers to file “C:Program Files (x86)MicrochipFreeRTOSFreeRTOSV9.0.0rc1FreeRTOSDemoCommonMinimalflash_timer.c” which does not exist in the disk. The make process might not build correctly. Could not generate makefiles for configuration USB-IISTARTERKIT. ConfigurationMakefileWriter::writeMakefileConf, Could not open file C:/Program Files (x86)/Microchip/FreeRTOS/FreeRTOSV9.0.0rc1/FreeRTOS/Demo/PIC32MXMPLAB/RTOSDemo.X/nbproject/Makefile-USB-IISTARTER_KIT.mk I also get the error when I try to build and clean the project: make -f nbproject/Makefile-USB-IISTARTERKIT.mk SUBPROJECTS= .build-conf make[1]: nbproject/Makefile-USB-IISTARTERKIT.mk: No such file or directory make[1]: Entering directory ‘C:/Program Files (x86)/Microchip/FreeRTOS/FreeRTOSV9.0.0rc1/FreeRTOS/Demo/PIC32MXMPLAB/RTOSDemo.X’ make[1]: *** No rule to make target ‘nbproject/Makefile-USB-IISTARTERKIT.mk’. Stop. make: *** [.build-impl] Error 2 make[1]: Leaving directory ‘C:/Program Files (x86)/Microchip/FreeRTOS/FreeRTOSV9.0.0rc1/FreeRTOS/Demo/PIC32MXMPLAB/RTOSDemo.X’ nbproject/Makefile-impl.mk:39: recipe for target ‘.build-impl’ failed From what I can tell, my problem comes from the fact that the USB Starter Kit 2 makefile is not generating and I appear to be missing a directory. I have not modified the extracted FreeRTOS file at all so I am not sure why this is happening. Any assistance would be great. Please let me know what other information you need. Thanks in advance.

USB Starter Kit 2 FreeRTOS Demo error

From the errors it looks like either the project didn’t open correctly, due to the first error, or the project did open but it cannot find the files it is trying to build. Did you preserve the directory structure when unzipping the FreeRTOS distribution? Have you confirmed the files it says it cannot find are actually on the disk? I’ve just tried building the MZ project from the rc1 distribution and that is fine, but note the lcd.c file in the MX project no longer builds because of the removal of plib.h. lcd.c is part of the demo application though, not part of FreeRTOS – dependencies on plib were removed from FreeRTOS itself some time ago.

USB Starter Kit 2 FreeRTOS Demo error

I found the files and added the directory path to my project properties. I’m not sure how they ended up in my download folder instead of with the rest but this seem to fix that particular problem. Unfortunately, I still get the exclusive access error and the makefile error. I missed this previously, but I also get a warning that the files contain spaces and odd characters in their path that may cause issues. Do you believe this is a problem? For your other question I have not changed the directory structure on purpose. I also just attempted to build the MZ project and had the same problem with generating the makefile. In trace/profiling output, I get WARNING: Path specified for trace data file does NOT exist. for the defmplabxtrace.log. This occurs for both MX and MZ. Thank you for your time and help. I really appreciate this.

USB Starter Kit 2 FreeRTOS Demo error

but I also get a warning that the files contain spaces
So what happened when you tried using the files in a directory path that didn’t contain spaces?

USB Starter Kit 2 FreeRTOS Demo error

I just don’t get a warning. I can’t really use any of the files since the project won’t build. I am not even sure that the spaces and odd characters cause problems at all. I was just trying to give as much information as possible. It doesn’t necessarily seem to cause a problem but I am also not sure where to look to find out.

USB Starter Kit 2 FreeRTOS Demo error

Sorry, I’m not following this now, do you get a warning that there are spaces in the path or not? If you are getting a warning, it would seem the first step to use a path that does not have spaces before requesting support for the issue. Have you done that?

USB Starter Kit 2 FreeRTOS Demo error

The warning only showed up for the directory that I had to place manually. The other files did not get the warning. I couldn’t find the odd character or space so I removed and downloaded the RTOS files again but to a differnt place. This seem to fix that warning as well as the exclusive access problem. I was even able to successfully build the MZ demo. Now that I have the rest of the warnings and problems fixed I am only left with two more. The first is the plib.h library and the second is the USB II Starter Kit Makefile build error. I previously was not getting to the point that I could see the plib.h error. Would the error from the plib.h cause the makefile error? Is there any way to fix the demo? I did a search for problems with plib.h but I didn’t fund any solutions.

USB Starter Kit 2 FreeRTOS Demo error

I just had a look at this and both the lcd and serial (UART) files are using obsolete libraries. The versions attached have the offending code removed – but will no longer work. I don’t think the functionality provided by either is actually used by the start kit demos anyway. If you build for the Explorer16 then the LCD won’t work and the COM test will fail.

USB Starter Kit 2 FreeRTOS Demo error

Sorry for the late reply. I replaced both the files in the project and it was built successfully with no errors or warnings. Thank you for you help. I appreciate it.