Hello Alex_elec
I'm also starting to port to the PIC32MZ. I've used the Legacy library for a TCPIP stack and added MODBUS TCP onto it.
It is working on the PIC32MX. Now I have to port to the PIC32MZ
What I have done so far is:
- Created a new configuration name, "XC32-PIC32MZ_SK_ETH204"
- Selected my PIC32MZ2048EF144 processor as a device
- Copied all previous Preprocessor Macros over to my new config name
I use XC32 2.10 (It does support my PIC32MZ2048EF144
When I compile I get a lot of errors as shown below:
It seems all the errors are related to peripheral libraries, as all errors are related to library files in the peripheral folder.
So I read your post on the forum that you had to remove the PLIB dependancies. How do I do this?
Help will be appreciated.
Marinus
Example of some errors:
c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\int.h:81:10: error: token ""EF"" is not valid in preprocessor expressions
#elif (((__PIC32_FEATURE_SET__ >= 100) && (__PIC32_FEATURE_SET__ <= 299)) || defined(__32MXGENERIC__))
^
c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\int.h:83:10: error: token ""EF"" is not valid in preprocessor expressions
#elif ((__PIC32_FEATURE_SET__ >= 300) && (__PIC32_FEATURE_SET__ <= 499))
^
c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\int.h:85:10: error: token ""EF"" is not valid in preprocessor expressions
#elif (((__PIC32_FEATURE_SET__ >= 500) && (__PIC32_FEATURE_SET__ <= 799)) || defined (__32MXPOCONO__))
^
In file included from c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\adc10.h:45:0,
from c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\plib.h:49,
from ../../../Microchip/Include/Compiler.h:117,
from ../Configs/TCPIP ETH795.h:53,
from ../TCPIPConfig.h:130,
from ../BerkeleyTCPServerDemo.c:55:
c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\int.h:88:4: error: #error "Device not supported by the interrupt peripheral library"
#error "Device not supported by the interrupt peripheral library"
^
In file included from c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\adc10.h:45:0,
from c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\plib.h:49,
from ../../../Microchip/Include/Compiler.h:117,
from ../Configs/TCPIP ETH795.h:53,
from ../TCPIPConfig.h:130,
from ../BerkeleyTCPServerDemo.c:55:
c:\program files (x86)\microchip\xc32\v2.10\pic32mx\include\lega-c\peripheral\int.h:119:58: error: '_INTCON_SS0_MASK' undeclared here (not in a function)
INT_REGISTOR_SET_SELECT_SS0 /*DOM-IGNORE-BEGIN*/ = (_INTCON_SS0_MASK) /*DOM-IGNORE-END*/