You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Download the simple-modbus v10.
2. while compile got the error message as under.
What is the expected output? What do you see instead?
Arduino: 1.5.6-r2 (Windows 8), Board: "Arduino Mega or Mega 2560, ATmega2560
(Mega 2560)"
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\tools\avr\bin\avr-g++ -c -g -Os
-w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560
-DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR
-ID:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino
-ID:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\variants\mega
C:\Users\admin\AppData\Local\Temp\build4717895760646505632.tmp\SimpleModbusMaste
rArduino.cpp -o
C:\Users\admin\AppData\Local\Temp\build4717895760646505632.tmp\SimpleModbusMaste
rArduino.cpp.o
In file included from SimpleModbusMasterArduino.ino:103:
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Arduino.
h:135: error: expected ',' or '...' before numeric constant
In file included from
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Hardware
Serial.h:29,
from D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Arduino.h:221,
from SimpleModbusMasterArduino.ino:103:
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Stream.h
:57: error: expected ',' or '...' before numeric constant
In file included from
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Arduino.
h:221,
from SimpleModbusMasterArduino.ino:103:
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Hardware
Serial.h:95: error: expected ',' or '...' before numeric constant
In file included from SimpleModbusMasterArduino.ino:103:
D:\Aurdino\Software\arduino-1.5.6-r2\hardware\arduino\avr\cores\arduino/Arduino.
h:232: error: expected ',' or '...' before numeric constant
SimpleModbusMasterArduino.ino:111: error: 'Packet' does not name a type
SimpleModbusMasterArduino.ino:117: error: 'packetPointer' does not name a type
SimpleModbusMasterArduino.ino:118: error: 'packetPointer' does not name a type
SimpleModbusMasterArduino.ino: In function 'void setup()':
SimpleModbusMasterArduino.ino:141: error: 'packet1' was not declared in this
scope
SimpleModbusMasterArduino.ino:141: error: 'READ_HOLDING_REGISTERS' was not
declared in this scope
SimpleModbusMasterArduino.ino:141: error: 'modbus_construct' was not declared
in this scope
SimpleModbusMasterArduino.ino:144: error: 'packet2' was not declared in this
scope
SimpleModbusMasterArduino.ino:144: error: 'PRESET_MULTIPLE_REGISTERS' was not
declared in this scope
SimpleModbusMasterArduino.ino:171: error: 'Packet' was not declared in this
scope
SimpleModbusMasterArduino.ino:171: error: expected primary-expression before
',' token
SimpleModbusMasterArduino.ino:171: error: 'modbus_configure' was not declared
in this scope
SimpleModbusMasterArduino.ino: In function 'void loop()':
SimpleModbusMasterArduino.ino:178: error: 'modbus_update' was not declared in
this scope
What version of the product are you using? On what operating system?
using Arduino DUE board. version 1.5.6-r2.
Thanks in advance for support.
Original issue reported on code.google.com by [email protected] on 11 May 2014 at 2:56
The text was updated successfully, but these errors were encountered:
I use version 1.05r2 with a Duemilanove. You need to change some stuff in the
library in order for it to compile under V1.5. Check out the forum thread
http://forum.arduino.cc/index.php?topic=176142.0
Original issue reported on code.google.com by
[email protected]
on 11 May 2014 at 2:56The text was updated successfully, but these errors were encountered: