jdskier1 / arduino-tiny

Automatically exported from code.google.com/p/arduino-tiny
Other
0 stars 0 forks source link

SoftwareSerial not working with tiny84 #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to use softwareserial with the tiny84. This really simple sketch 
fails to compile:

#include <SoftwareSerial.h>
void setup () {}
void loop () {}

Errors:

C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp: In member 
function 'void SoftwareSerial::begin(long int)':
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp:396: error: 
'digitalPinToPCICR' was not declared in this scope
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp:398: error: 
'digitalPinToPCICRbit' was not declared in this scope
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp:399: error: 
'digitalPinToPCMSK' was not declared in this scope
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp:399: error: 
'digitalPinToPCMSKbit' was not declared in this scope
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp: In member 
function 'void SoftwareSerial::end()':
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp:414: error: 
'digitalPinToPCMSK' was not declared in this scope
C:\Tools\arduino-1.0.1\libraries\SoftwareSerial\SoftwareSerial.cpp:415: error: 
'digitalPinToPCMSKbit' was not declared in this scope

Somehow it seems that the definitions in pins_arduino.h are not being picked 
up. 

This same sketch does compile when I select attiny85 as board. Any ideas? I am 
using the latest arduino IDE (1.0.1) and the latest version of arduino-tiny. 

Original issue reported on code.google.com by m.da...@gmail.com on 23 Aug 2012 at 4:27

GoogleCodeExporter commented 8 years ago
> and the latest version of arduino-tiny

Which is?

Original comment by arduino....@gmail.com on 23 Aug 2012 at 7:58

GoogleCodeExporter commented 8 years ago
I'm sorry, that's: arduino-tiny-0100-0015.zip

Original comment by m.da...@gmail.com on 23 Aug 2012 at 8:12

GoogleCodeExporter commented 8 years ago
I tested this on a clean machine (Windows XP), the same error occured.

Original comment by m.da...@gmail.com on 25 Aug 2012 at 10:21

GoogleCodeExporter commented 8 years ago
I cannot reproduce the problem.  I downloaded revision 15 using the "Download 
the latest version for Arduino 1.0" link on the home page.  I installed into a 
fresh hardware directory.  Your test code compiles without errors for all 8 MHz 
and 16 MHz board entries.

Original comment by arduino....@gmail.com on 25 Aug 2012 at 7:08