PIC32MZ

tlafleur wrote on Sunday, November 17, 2013:

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!

rtel wrote on Sunday, November 17, 2013:

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

Regards.

tlafleur wrote on Sunday, November 17, 2013:

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

rtel wrote on Sunday, November 17, 2013:

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

Regards.

tlafleur wrote on Sunday, November 17, 2013:

thanks… I have the new tools…

I will wait and see!

rtel wrote on Monday, November 18, 2013:

Here is the documentation page:

[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.

tlafleur wrote on Monday, November 18, 2013:

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

rtel wrote on Monday, November 18, 2013:

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.

tlafleur wrote on Monday, November 18, 2013:

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

rtel wrote on Monday, November 18, 2013:

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.

tlafleur wrote on Monday, November 18, 2013:

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…

dragonflight1 wrote on Monday, November 18, 2013:

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).