I use arduino Doflye version board(Arduino Uno Improved Version in Chinese ), this version needs CH341 USB to Serial Driver installed to be able to connect this board, also it needs to Configurate the board file for Arduino IDE so I can update the program to the board.
The board get the name as Arduino Optiboot8 instead of Arduino Uno.
My project is to send sms using GSM TC35 module include the message of tempreture. I got the following problem:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:399: error: 'PCICR' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'PCMSK2' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'PCMSK0' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'PCMSK1' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::end()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'PCMSK2' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'PCMSK0' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'PCMSK1' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
One of these days, I hope you learn to quote, so we have idea what you are talking about. With no context, this collection of words is complete nonsense.
Hi I did, it still returned compiling error message.
The comment on the error is pasted below.
All I want is a working sketch that can call and send text message to my GSM phone. I only included the first section that is meant to place the call.
Thank you.
Error Message:
GSM\GSM3SoftSerial.cpp.o: In function __vector_5': C:\Program Files (x86)\Arduino\libraries\GSM/GSM3SoftSerial.cpp:525: multiple definition of __vector_5'
SoftwareSerial\SoftwareSerial.cpp.o:C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.cpp:319: first defined here
GSM\GSM3SoftSerial.cpp.o: In function __vector_4': C:\Program Files (x86)\Arduino\libraries\GSM/GSM3SoftSerial.cpp:518: multiple definition of __vector_4'
SoftwareSerial\SoftwareSerial.cpp.o:C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.cpp:312: first defined here
GSM\GSM3SoftSerial.cpp.o: In function __vector_3': C:\Program Files (x86)\Arduino\libraries\GSM/GSM3SoftSerial.cpp:511: multiple definition of __vector_3'
SoftwareSerial\SoftwareSerial.cpp.o:C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.cpp:305: first defined here
It looks like the SoftwareSerial library is trying to use the same interrupt vectors as the GSM library.
You can verify this by temporarily commenting out all references to the GSM library and then seeing if the sketch compiles.
If that is the problem you will need an alternative to SoftwareSerial. One option is a very basic alternative that I wrote here. I have no idea whether it will meet your needs.
By the way, my suggestion to add Arduino.h was in response to the OP's problems, not yours. I don't think I had noticed that you had added yourself to the Thread.