FreeRTOS and Microchip Harmony

benduvenage wrote on Wednesday, September 02, 2015:

Hi All

I have recently discover the joy of FreeRTOS.

I have a failry simple project that I want to use FreeRTOS on a PIC32MXF795F512L and I can implement all the drivers as required using Microchip Harmony 1.05.

The issue is.
As soon as I try to enable the TCPIP stack in Harmony I get a lot of “previously defined” erros.
Has someone ever got this going?
It seems that Harmony has some integration issues.

I have also tried Harmony 1.06 and some issue…

Kind regards
ben Duvenage

rtel wrote on Wednesday, September 02, 2015:

I would recommend asking questions related to running FreeRTOS on a PIC32 (configuration, interrupt handlers, etc.) on this forum, and questions relating to the Harmony integration on the Microchip forum. For example, doing a quick Google search I found this top (which may not be relevant to your question, I haven’t looked), and I’m sure there will be others:


blavo1 wrote on Wednesday, September 02, 2015:

I’ve been successful in getting a project started. I’d recomend using 1.06 from what the microchip support team told me, the even number releases are based off the main trunk.

One thing you could try if you haven’t already, as you mentioned you’re using 795 device which I’m guessing you already own an ethernet starter kit.

I would look at sample applications that ship with Harmony. In the ~/apps/rtos/freertos directory you’ll see a tcpip_client_server which is using freertos and was created using harmony configurator. You can look at that example and see what was done there.

For you’re custom hardware you may be able to start with project and use you’re own board support package or you can use the harmony configurator tool to create from scratch using the settings from the tcpip_client_server settings as an reference.

If you decide to post to the microchip forum, I’ll look for your posting there if you need more help.

benduvenage wrote on Wednesday, September 02, 2015:

I have done my homework
And currently there are more info on this problem here than at MHCP

jeancarlo19 wrote on Monday, January 16, 2017:


I’m absolutely begginer with the FreeRTOS. I’m learning with the practical guide “Using the FreeRTOS Real Time Kernel” and I’m looking for the way to use the hands-on examples creating a new project with the MPLAB Harmony, obviously I’ve included the FreeRTOS module with the harmony configurator and inside my project are the files from FreeRTOS but I can’t find information about the implementation of the FreeRTOS using the Hands-on examples with harmony. May somebody help me? thanks in advance!

rtel wrote on Monday, January 16, 2017:

The PIC32 examples that come with the book use MPLAB but don’t use
Harmony. I would recommend using the projects as provided. You could
alternatively create a basic Hello World example using Harmony, then
copy the book examples into that, but that would take more steps.