• AVR Freaks

Helpful ReplyPIC32MZ EF Harmony3 MIIM Commands option does not compile

Author
Luca Pascarella
Starting Member
  • Total Posts : 69
  • Reward points : 0
  • Joined: 2007/05/28 00:53:17
  • Location: The Netherlands
  • Status: offline
2019/09/09 07:41:10 (permalink)
5 (1)

PIC32MZ EF Harmony3 MIIM Commands option does not compile

I started to migrate my current project from Harmony 2 to Harmony 3 and I just found a compilation issue.
 
More precisely, in Harmony3 with PIC32MZ when MIIM Commands option is enabled the compilation process fails with the following error:
error: implicit declaration of function 'SYS_CLK_PeripheralFrequencyGet' [-Werror=implicit-function-declaration]

 
Apparently tcpip_commands.c when built for PIC32MZ still refers to an old SYS_CLK_PeripheralFrequencyGet function:
#if defined (__PIC32MZ__)
    miimSetup.hostClockFreq = SYS_CLK_PeripheralFrequencyGet(CLK_BUS_PERIPHERAL_5);
#elif defined (__PIC32C__) || defined(__SAMA5D2__)
    miimSetup.hostClockFreq = SYS_CLK_FrequencyGet(SYS_CLK_MASTER);
#else
    miimSetup.hostClockFreq = SYS_CLK_SystemFrequencyGet();
#endif

 
Luca
#1
rainad
Moderator
  • Total Posts : 1209
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: offline
Re: PIC32MZ EF Harmony3 MIIM Commands option does not compile 2019/09/09 09:56:41 (permalink) ☄ Helpfulby Luca Pascarella 2019/09/09 10:01:19
5 (1)
Yes, you're right, there is an issue there for the PIC32MZ.
We'll look into it immediately and provide an update.
Thank you for reporting this.
 
#2
rainad
Moderator
  • Total Posts : 1209
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: offline
Re: PIC32MZ EF Harmony3 MIIM Commands option does not compile 2019/09/09 11:24:29 (permalink)
0
There is no need for any #ifdef constructs.
The code should look like:
miimSetup.hostClockFreq = (uint32_t)TCPIP_INTMAC_PERIPHERAL_CLK;
 
Please replace with this line.
We'll update the code and it will be part of the next release.
 
#3
Jump to:
© 2019 APG vNext Commercial Version 4.5