chipKIT® Development Platform

Inspired by Arduino™

Firmata

Created Wed, 05 Sep 2012 20:40:12 +0000 by fiddler


fiddler

Wed, 05 Sep 2012 20:40:12 +0000

Just tried to compile and download the Firmata to a Max32 board.

All the examples fail to compile, ie compiles with errors. Latest IDE from Github on Linux

Kim


fiddler

Thu, 06 Sep 2012 05:37:57 +0000

Oops, thought I included the erros:

Anyway, what do I do from here on ???

Kim

In file included from /home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Firmata.h:159:0,
                 from StandardFirmata.cpp:19:
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:261:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h: In function 'unsigned char readPort(byte, byte)':
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:279:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:279:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:280:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:280:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:281:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:281:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:282:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:282:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:283:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:283:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:284:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:284:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:285:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:285:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:286:26: error: 'IS_PIN_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:286:83: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h: In function 'unsigned char writePort(byte, byte, byte)':
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:315:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:316:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:317:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:318:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:319:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:320:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:321:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
/home/kim/MP_IDE_023/mpide-0023-linux32-20111221/libraries/Firmata/Boards.h:322:57: error: 'PIN_TO_DIGITAL' was not declared in this scope
StandardFirmata.cpp: At global scope:
StandardFirmata.cpp:40:17: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:41:19: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:44:16: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:45:23: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:46:14: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp: In function 'void outputPort(byte, byte, byte)':
StandardFirmata.cpp:62:27: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:64:19: error: 'previousPINs' was not declared in this scope
StandardFirmata.cpp: In function 'void checkDigitalInputs()':
StandardFirmata.cpp:78:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:78:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:78:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:79:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:79:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:79:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:80:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:80:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:80:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:81:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:81:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:81:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:82:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:82:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:82:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:83:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:83:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:83:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:84:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:84:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:84:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:85:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:85:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:85:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:86:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:86:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:86:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:87:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:87:26: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:87:67: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:88:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:88:27: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:88:71: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:89:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:89:27: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:89:71: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:90:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:90:27: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:90:71: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:91:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:91:27: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:91:71: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:92:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:92:27: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:92:71: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:93:7: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:93:27: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp:93:71: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp: In function 'void setPinModeCallback(byte, int)':
StandardFirmata.cpp:102:23: error: 'IS_PIN_SERVO' was not declared in this scope
StandardFirmata.cpp:102:68: error: 'PIN_TO_SERVO' was not declared in this scope
StandardFirmata.cpp:105:24: error: 'IS_PIN_ANALOG' was not declared in this scope
StandardFirmata.cpp:106:43: error: 'PIN_TO_ANALOG' was not declared in this scope
StandardFirmata.cpp:108:25: error: 'IS_PIN_DIGITAL' was not declared in this scope
StandardFirmata.cpp:110:7: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:112:7: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp:115:3: error: 'pinState' was not declared in this scope
StandardFirmata.cpp:118:26: error: 'IS_PIN_ANALOG' was not declared in this scope
StandardFirmata.cpp:119:29: error: 'IS_PIN_DIGITAL' was not declared in this scope
StandardFirmata.cpp:120:35: error: 'PIN_TO_DIGITAL' was not declared in this scope
StandardFirmata.cpp:123:7: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:127:27: error: 'IS_PIN_DIGITAL' was not declared in this scope
StandardFirmata.cpp:128:33: error: 'PIN_TO_DIGITAL' was not declared in this scope
StandardFirmata.cpp:130:7: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:134:27: error: 'IS_PIN_DIGITAL' was not declared in this scope
StandardFirmata.cpp:135:38: error: 'PIN_TO_DIGITAL' was not declared in this scope
StandardFirmata.cpp:137:7: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:141:23: error: 'IS_PIN_PWM' was not declared in this scope
StandardFirmata.cpp:142:29: error: 'PIN_TO_PWM' was not declared in this scope
StandardFirmata.cpp:144:7: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:148:25: error: 'IS_PIN_SERVO' was not declared in this scope
StandardFirmata.cpp:149:7: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:150:35: error: 'PIN_TO_SERVO' was not declared in this scope
StandardFirmata.cpp:151:62: error: 'PIN_TO_DIGITAL' was not declared in this scope
StandardFirmata.cpp:158:5: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp: In function 'void analogWriteCallback(byte, int)':
StandardFirmata.cpp:169:13: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:170:12: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:172:27: error: 'IS_PIN_SERVO' was not declared in this scope
StandardFirmata.cpp:173:32: error: 'PIN_TO_SERVO' was not declared in this scope
StandardFirmata.cpp:174:9: error: 'pinState' was not declared in this scope
StandardFirmata.cpp:177:25: error: 'IS_PIN_PWM' was not declared in this scope
StandardFirmata.cpp:178:35: error: 'PIN_TO_PWM' was not declared in this scope
StandardFirmata.cpp: In function 'void digitalWriteCallback(byte, int)':
StandardFirmata.cpp:189:14: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:195:29: error: 'IS_PIN_DIGITAL' was not declared in this scope
StandardFirmata.cpp:198:13: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:200:11: error: 'pinState' was not declared in this scope
StandardFirmata.cpp: In function 'void reportAnalogCallback(byte, int)':
StandardFirmata.cpp:217:19: error: 'TOTAL_ANALOG_PINS' was not declared in this scope
StandardFirmata.cpp: In function 'void reportDigitalCallback(byte, int)':
StandardFirmata.cpp:229:14: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:230:5: error: 'reportPINs' was not declared in this scope
StandardFirmata.cpp: In function 'void sysexCallback(byte, byte, byte*)':
StandardFirmata.cpp:254:27: error: 'IS_PIN_SERVO' was not declared in this scope
StandardFirmata.cpp:256:36: error: 'PIN_TO_SERVO' was not declared in this scope
StandardFirmata.cpp:258:32: error: 'PIN_TO_SERVO' was not declared in this scope
StandardFirmata.cpp:258:60: error: 'PIN_TO_DIGITAL' was not declared in this scope
StandardFirmata.cpp:280:28: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:281:29: error: 'IS_PIN_DIGITAL' was not declared in this scope
StandardFirmata.cpp:287:28: error: 'IS_PIN_ANALOG' was not declared in this scope
StandardFirmata.cpp:291:25: error: 'IS_PIN_PWM' was not declared in this scope
StandardFirmata.cpp:295:27: error: 'IS_PIN_SERVO' was not declared in this scope
StandardFirmata.cpp:309:17: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:310:28: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:311:21: error: 'pinState' was not declared in this scope
StandardFirmata.cpp:321:28: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:322:37: error: 'IS_PIN_ANALOG' was not declared in this scope
StandardFirmata.cpp:322:58: error: 'PIN_TO_ANALOG' was not declared in this scope
StandardFirmata.cpp: In function 'void setup()':
StandardFirmata.cpp:355:17: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:356:24: error: 'IS_PIN_ANALOG' was not declared in this scope
StandardFirmata.cpp:371:17: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:372:31: error: 'portConfigInputs' was not declared in this scope
StandardFirmata.cpp: In function 'void loop()':
StandardFirmata.cpp:400:20: error: 'TOTAL_PINS' was not declared in this scope
StandardFirmata.cpp:401:28: error: 'IS_PIN_ANALOG' was not declared in this scope
StandardFirmata.cpp:401:33: error: 'pinConfig' was not declared in this scope
StandardFirmata.cpp:402:38: error: 'PIN_TO_ANALOG' was not declared in this scope

WestfW

Thu, 06 Sep 2012 07:50:49 +0000

Well, this:

/Boards.h:261:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"

Firmata's purpose is to manipulate the arduino pins from host-side software. Since the ChipKit has different (more!) pins than a real Arduino, it makes sense that it would require some changes to support correctly (though it might be nice to have "default" support on "default" pins, or something like that.)

Boards.h looks pretty self-explanatory, sort of. I'm surprised no one has done a version for ChipKit yet...