Quantcast
Channel: panStamp forum - All Forums
Viewing all articles
Browse latest Browse all 473

Panstamp AVR, modem.ino does not compile!

$
0
0
Hi,
I copied the modem.ino file from the wiki and tried to compile it and it doesn't work! Shouldn't it at least compile until I make stupid changes?
These are the error messages:

Arduino: 1.6.7 (Windows 7), Board: "SparkFun Pro Micro 5V/16MHz"

Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude, automatically converted to tools.avrdude.cmd.path={path}/bin/avrdude. Consider upgrading this core.
Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf, automatically converted to tools.avrdude.config.path={path}/etc/avrdude.conf. Consider upgrading this core.
Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
PanStampSerialModem:3: error: stray '@' in program

* Copyright © 2014 panStamp <contact@panstamp.com>

^

PanStampSerialModem:1: error: expected constructor, destructor, or type conversion before '.' token

* modem.pde

^

PanStampSerialModem:7: error: 'you' does not name a type

* panStamp is free software; you can redistribute it and/or modify

^

PanStampSerialModem:9: error: 'either' does not name a type

* the Free Software Foundation; either version 2 of the License, or

^

PanStampSerialModem:13: error: 'without' does not name a type

* but WITHOUT ANY WARRANTY; without even the implied warranty of

^

PanStampSerialModem:18: error: expected unqualified-id before 'if'

* along with panStamp; if not, write to the Free Software

^

In file included from F:\Socrates MASTER\Technical\Electronics\Projects\IoT_Home automation\panstamp\Panstamp Serial Modem\PanStampSerialModem\PanStampSerialModem.ino:38:0:

modem.h:75: error: 'CCPACKET' does not name a type

CCPACKET *rxPacket;

^

modem.h:79: error: 'SERMODE' does not name a type

SERMODE serMode = SERMODE_DATA; // Serial mode (data or command mode)

^

PanStampSerialModem:67: error: variable or field 'rfPacketReceived' declared void

void rfPacketReceived(CCPACKET *packet)

^

PanStampSerialModem:67: error: 'CCPACKET' was not declared in this scope

PanStampSerialModem:67: error: 'packet' was not declared in this scope

void rfPacketReceived(CCPACKET *packet)

^

PanStampSerialModem:67: error: variable or field 'rfPacketReceived' declared void

void rfPacketReceived(CCPACKET *packet)

^

PanStampSerialModem:67: error: 'CCPACKET' was not declared in this scope

PanStampSerialModem:67: error: 'packet' was not declared in this scope

void rfPacketReceived(CCPACKET *packet)

^

exit status 1
stray '@' in program

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

Am I doing something obviously wrong?
Thanks,
Pip

Viewing all articles
Browse latest Browse all 473