Offline
Newbie
Karma: 0
Posts: 19
|
 |
« on: January 07, 2013, 07:51:43 pm » |
I'm getting an error that says that PCMSK and PCICR is not declare in scope of SoftwareSerial.cpp lines 399-403 and lines 417-418 this is code that the arduino compiler point me too in the cpp file if (digitalPinToPCICR(_receivePin)) { *digitalPinToPCICR(_receivePin) |= _BV(digitalPinToPCICRbit(_receivePin)); *digitalPinToPCMSK(_receivePin) |= _BV(digitalPinToPCMSKbit(_receivePin)); } if (digitalPinToPCMSK(_receivePin)) *digitalPinToPCMSK(_receivePin) &= ~_BV(digitalPinToPCMSKbit(_receivePin));
Can anyone please help me fix this error? I get this error with the example that came with the Arduino 1.03 software.
|
|
|
|
« Last Edit: January 07, 2013, 08:37:12 pm by Hovic »
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 116
Posts: 10132
|
 |
« Reply #1 on: January 07, 2013, 08:50:56 pm » |
Board (or processor)?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #2 on: January 07, 2013, 09:59:22 pm » |
I try softwareSerialExample on different computer and had no problems.
Even thou i redownload the program on my computer that has the problems, there was no change in error
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 116
Posts: 10132
|
 |
« Reply #3 on: January 07, 2013, 10:04:05 pm » |
In which case you need to remove SoftwareSerial from the {SketchRoot}/libraries/ folder.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #4 on: January 07, 2013, 10:51:39 pm » |
the problem started with the arduino 1.02. but is it possible that old arduino 1.02 corrupt the SoftwareSerial.h in the updated version arduino 1.03?
|
|
|
|
« Last Edit: January 07, 2013, 10:54:52 pm by Hovic »
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 116
Posts: 10132
|
 |
« Reply #5 on: January 07, 2013, 11:02:35 pm » |
Did you remove SoftwareSerial from the {SketchRoot}/libraries/ folder?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #6 on: January 08, 2013, 12:06:13 am » |
I remove the softwareSerial.h from the libraries, So what should i do now?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 116
Posts: 10132
|
 |
« Reply #7 on: January 08, 2013, 12:16:40 am » |
Describe what happens when you try to compile the test program.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #8 on: January 08, 2013, 12:35:35 am » |
if i remove it SoftwareSerial.h from libraries the sketch say that SoftwareSerial.h is no such file or in directory. #include "SoftwareSerial.h" void setup(){} void loop(){} "sketch_jan08a.ino:1:28: error: SoftwareSerial.h: No such file or directory" if i comment out the #include <SoftwareSerial.h> in the example SoftwareSerialExample. it says myserial not declared in scope.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #9 on: January 08, 2013, 12:44:51 am » |
here all the errors that the compiler is showing me.
C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)': C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:399: error: 'PCICR' was not declared in this scope C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'PCMSK2' was not declared in this scope C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'PCMSK0' was not declared in this scope C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'PCMSK1' was not declared in this scope C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::end()': C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'PCMSK2' was not declared in this scope C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'PCMSK0' was not declared in this scope C:\Users\Peter C Cole\Documents\Arduino Program\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'PCMSK1' was not declared in this scope
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 116
Posts: 10132
|
 |
« Reply #10 on: January 08, 2013, 12:47:57 am » |
I guess it's time to start over. Maybe this time you'll answer my questions.
Board (or processor)?
Did you remove SoftwareSerial from the {SketchRoot}/libraries/ folder?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #11 on: January 08, 2013, 01:00:34 am » |
arduino uno atmega 328p, this computer has intel core 2 duo processor
|
|
|
|
« Last Edit: January 08, 2013, 01:03:05 am by Hovic »
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 116
Posts: 10132
|
 |
« Reply #12 on: January 08, 2013, 01:31:11 am » |
The {SketchRoot} folder is where your sketches are stored. The {SketchRoot} folder is not the arduino-1.0.3 folder. I assume you did not delete the {SketchRoot}/libraries/SoftwareSerial/ folder. Obviously you did delete the arduino-1.0.3/libraries/SoftwareSerial/ folder. You will have to reinstall the Arduino IDE.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #13 on: January 08, 2013, 01:43:25 am » |
Where is the SketchRoot? can you give a screen shot what you mean?
|
|
|
|
« Last Edit: January 08, 2013, 01:51:30 am by Hovic »
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15309
Measurement changes behavior
|
 |
« Reply #14 on: January 08, 2013, 02:05:25 am » |
Where is the SketchRoot? can you give a screen shot what you mean?
It is the folder name on your PC of where ever your sketches are saved to when you quit the IDE. The full path name is shown in the arduino IDE under files/Preferences, in the top window named Sketchbook location. My path sketch folder is named C:\Documents and Settings\Primary Windows User\My Documents\Arduino when using arduino version 22 and it's path sketch folder name is C:\Documents and Settings\Primary Windows User\My Documents\Arduino\Arduino1 when I'm using arduino version 1.0.3. This is the folder name where you can create a folder named libraries where you can then install 3rd party library files and example sketches for the library. The arduino core also has a folder named libraries that it populates with the 'official' arduino library files that come with IDE installation distrubution. You should not add or erase files in that folder, just your arduino users sketchbook folder/libraries folder. Lefty
|
|
|
|
« Last Edit: January 08, 2013, 02:08:13 am by retrolefty »
|
Logged
|
|
|
|
|
|