chipKIT® Development Platform

Inspired by Arduino™

The Ethernet library: GetInstructionClock() must be defined

Created Wed, 22 Aug 2012 12:20:08 +0000 by Ewgenijkkg


Ewgenijkkg

Wed, 22 Aug 2012 12:20:08 +0000

Hello, community. I included the Ethernet library in my project (added file chipKITEthernet.h to includes in the main sketch) and got a compilation error right afterwards. The error ist

mpide-0023-linux32-20111221/sketchbook/libraries/chipKITEthernet/utility/TCPIP Stack/Delay.h:63:3: error: #error GetInstructionClock() must be defined. make: *** [build-cli/libs/chipKITEthernet/utility/ARP.o] Error 1

What is the reason for this error? Apparrently, the clock is not defined. But where is it supposed to be defined?

BR Ewgenij


JordanR

Wed, 22 Aug 2012 20:12:29 +0000

Hello Ewgenijkkg,

GetInstructionClock() is defined in HardwareProfile.h as (GetSystemClock()/1) and GetSystemClock() is defined as (80000000ul). Do you have any other libraries included? Do you have all the utility files in their original locations within the chipKITEthernet library download?

Best Regards,

Jordan R Digilent


jcobreros

Sat, 25 Aug 2012 21:43:03 +0000

I'm having the same problem while trying to use the network libray and the ubs library at the same time. Could this be the reason?


Egwyn

Mon, 24 Sep 2012 17:37:15 +0000

Im working with Mplab now, now I need includ HardwareProfile.h file with the max32 description, but where can I found it ?