-
Notifications
You must be signed in to change notification settings - Fork 56
ISR USART3_RX_vect Error: multiple definition of `__vector_54' #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, let´s try to use Controllino_RS485Init( void ). This function just configures the bus direction control signals and does not call Serial3 at all. |
Of course, I can't write my own code for USART3 and use the Arduino Serial3 at the same time. Sorry I have not been specific at this point, but the curious thing is, I never call Controllino_RS485Init( long aBaudrate ) in my project. The error already turns up with this few lines of code:
The compile error:
|
Yes, you are right, the compiler builds also the Serial3 code even if you do not call Controllino_RS485Init( long aBaudrate ). Pretty sad ... I am afraid that you have to comment out the line Serial3.begin(aBaudrate); in our Controllino.cpp. Then the compilation of your example code works fine - as you have already found. Maybe we can add some define in future versions of the library. Like CONTROLLINO_DO_NOT_USE_SERIAL3 :) |
I found a quote in the Arduino core library HardwareSerial0.cpp regarding this problem:
|
Unfortunately, Arduino has troubles to pass defines to the library sources, so my proposal with the CONTROLLINO_DO_NOT_USE_SERIAL3 will be not implemented. |
See this thread for more details. |
something to fix this? I have come across this problem and I don't know how to solve it |
As I have proposed in my previous comment: "...I am afraid that you have to comment out the line Serial3.begin(aBaudrate); in our Controllino.cpp". |
Uh oh!
There was an error while loading. Please reload this page.
Hallo,
i have programmed a DMX reciever on a Controllino MEGA over the RS 485 interface. The compiler crashes with the error: multiple definition of `__vector_54'
It compiles, when I comment out the ISR in my ino-file.
ISR (USART3_RX_vect) {//Do something}
Or it compiles, when I leave my ISR as it is and comment out the initialization routine of the RS 485 in the Controllino.cpp and Controllino.h.
char Controllino_RS485Init( long aBaudrate )
I hope there will be a clever adaption, so I don't have to modify the library manually.
btw:
I use the latest library (3.0.4) and board package version (3.0.2).
The text was updated successfully, but these errors were encountered: