arduino-softpwm icon indicating copy to clipboard operation
arduino-softpwm copied to clipboard

Timer User Conflicts with AltSoftSerial

Open davidbitton opened this issue 6 years ago • 1 comments

It appears as if AltSoftSerial is trying to use the same timer as SoftPWM. PlatformIO is spitting out the following on compilation:

AltSoftSerial.cpp.o (symbol from plugin): In function `AltSoftSerial::read()':
(.text+0x0): multiple definition of `__vector_11'
.pioenvs/pro16MHzatmega328/src/main.cpp.o (symbol from plugin):(.text+0x0): first defined here

When I comment out any reference to SoftPWM, this error goes away. AltSoftSerial sets up which time it uses in AltSoftSerial_Boards based on the type of board chip. I'm using a Pro Mini. Is there another timer we can use? Thanks!

davidbitton avatar May 20 '18 16:05 davidbitton

I think I solved the problem. I'm switching to a Pro Micro with a 32u4 proc. AltSoftSerial runs on Timer3 for that MCU. Thanks.

davidbitton avatar May 20 '18 17:05 davidbitton