# PIC32MZ

**URL:** <https://forums.freertos.org/t/pic32mz/3355>\
**Category:** Kernel\
**Created:** [November 17, 2013, 5:45pm UTC](https://forums.freertos.org/t/pic32mz/3355 "2013-11-17T17:45:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 17, 2013, 5:45pm UTC](https://forums.freertos.org/t/pic32mz/3355/1 "2013-11-17T17:45:34Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Sunday, November 17, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#7dbd):

I happy to see a port of FreeRTOS for the NEW PIC32MZ happening so soon after announcing of the part!

good work… will save me my effort in doing the port for my project!

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 17, 2013, 5:51pm UTC](https://forums.freertos.org/t/pic32mz/3355/2 "2013-11-17T17:51:52Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, November 17, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#b4fa):

…not quite. The .zip file and web page will be live tomorrow.

Regards.

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 17, 2013, 6:27pm UTC](https://forums.freertos.org/t/pic32mz/3355/3 "2013-11-17T18:27:18Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Sunday, November 17, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#b4fa/90ef):

I noticed that their are no serial driver and serial test for this port??

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 17, 2013, 6:36pm UTC](https://forums.freertos.org/t/pic32mz/3355/4 "2013-11-17T18:36:31Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, November 17, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#dc3e):

Ah…you will have to wait and see. Note you may need tool updates too.

Regards.

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 17, 2013, 6:38pm UTC](https://forums.freertos.org/t/pic32mz/3355/5 "2013-11-17T18:38:47Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Sunday, November 17, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#dc3e/3416):

thanks… I have the new tools…

I will wait and see!

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 18, 2013, 1:28pm UTC](https://forums.freertos.org/t/pic32mz/3355/6 "2013-11-18T13:28:03Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#54b8):

Here is the documentation page:

> **[Free RTOS for PIC32MZ microcontroller with MIPS M14K core](https://www.freertos.org/PIC32MZ_RTOS_MIPS_M14K.html)**
>
> Free RTOS for PIC32 MX

[do you realise you are posting your phone number? if that is a mistake and you can’t edit the post let me know and I can remove it for you (I think?)]

Regards.

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 18, 2013, 3:37pm UTC](https://forums.freertos.org/t/pic32mz/3355/7 "2013-11-18T15:37:12Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#54b8/eecc):

yes, please remove my phone number…

also, the MPLAB-X IDE on a MAC require a forward slash in portable.h

I believe, but have not tested, that the windows and Linux will also  
support the forward slash in MPLAB-X

#ifdef MPLAB\_PIC24\_PORT  
#include “…/…/Source/portable/MPLAB/PIC24\_dsPIC/portmacro.h”  
#endif

#ifdef MPLAB\_DSPIC\_PORT  
#include “…/…/Source/portable/MPLAB/PIC24\_dsPIC/portmacro.h”  
#endif

#ifdef MPLAB\_PIC18F\_PORT  
#include “…/…/Source/portable/MPLAB/PIC18F/portmacro.h”  
#endif

#ifdef MPLAB\_PIC32MX\_PORT  
#include “…/…/Source/portable/MPLAB/PIC32MX/portmacro.h”  
#endif

#ifdef MPLAB\_PIC32MZ\_PORT  
#include “…/…/Source/portable/MPLAB/PIC32MZ/portmacro.h”  
#endif

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 18, 2013, 4:04pm UTC](https://forums.freertos.org/t/pic32mz/3355/8 "2013-11-18T16:04:54Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#46b8):

The definitions in that file are obsolete, and only kept for backward compatibility with really old projects that still use them. I think the PIC24 project is one such project, although there it is used to select between the PIC24 and dsPIC headers. PIC32 projects should not use them at all, but instead add the path to the correct portmacro.h as an include path in the project settings.

I had actually changed the PIC32 one to forward slashes in FreeRTOS V7.6.0, and have now done the same for the other PIC projects.

Regards.

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 18, 2013, 4:43pm UTC](https://forums.freertos.org/t/pic32mz/3355/9 "2013-11-18T16:43:39Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#46b8/1bc1):

when I went to compile your PIC32MZ project in harmony, it failed until I  
made the changes…

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 18, 2013, 4:49pm UTC](https://forums.freertos.org/t/pic32mz/3355/10 "2013-11-18T16:49:55Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#a067):

Interesting - it was for them I changed the PIC32 version (even though it should not be being used). I will pass on the comment to Microchip, thanks for letting me know.

Regards.

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 18, 2013, 6:57pm UTC](https://forums.freertos.org/t/pic32mz/3355/11 "2013-11-18T18:57:17Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#a067/c076):

also, in YOUR 7.6.0 distribution they are like this and missing the  
PIC32MZ…

#ifdef MPLAB\_PIC24\_PORT  
#include “…\Source\portable\MPLAB\PIC24\_dsPIC\portmacro.h”  
#endif

#ifdef MPLAB\_DSPIC\_PORT  
#include “…\Source\portable\MPLAB\PIC24\_dsPIC\portmacro.h”  
#endif

#ifdef MPLAB\_PIC18F\_PORT  
#include “…\Source\portable\MPLAB\PIC18F\portmacro.h”  
#endif

#ifdef MPLAB\_PIC32MX\_PORT  
#include “…/…/Source/portable/MPLAB/PIC32MX/portmacro.h”  
#endif

But in the Harmony distribution, they were all using a back slash and it  
did include the PIC32MZ…

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 18, 2013, 7:59pm UTC](https://forums.freertos.org/t/pic32mz/3355/12 "2013-11-18T19:59:45Z")

</div>

**[dragonflight1](https://sourceforge.net/u/dragonflight1/)** wrote on [Monday, November 18, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/900caade/#46b8/e6d7):

Off topic, but you could replace the MPLAB\_DSPIC\_PORT in the source files with **HAS\_DSP** for people that don’t use MPLAB (like me).
