Start a new topic

Error compiling sketch : _vector_5 error

 

 

Arduino: 1.6.13 (Windows 10), Board: "Arduino Nano, ATmega328"

libraries\SoftwareSerial\SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':

(.text+0x0): multiple definition of `__vector_5'

sketch\MultiFeaturedVFO_new_nextion.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 Added libraries used in combination with my sketch, also added.


Using IDE 1.6.13.


Just adding <Nextion.h> without any other nextion related calls and the compilation issues start. Hope this helps.


Some verbose info while compiling -> now in compile_errors.txt attached


 FYI:

The Nextion 2.4 enhanced display checked in today.

Already loaded my hmi into it.

That is working :)


[ Edited by Patrick Martin                                                           ]

[   condensed 400+ line screen dump - see compile_errors.txt ]

zip
ino
txt

I have edited your post Ron.


All information you posted still exists.  No one can scroll 500 lines to guess an answer.

Such style posts will not bring about a response.  Put LONG in a text file and attach.

If it is cleanly posted, then perhaps there may be more that might make a stab at it.

__vector_5 error is an Arduino compile error.  --> Check Arduino while we wait ...

Perhaps another Nextion user also may have once experienced and explain.

Also mentioning which MCU and board you are using ... may help

It would also be useful to ask a specific question, it isn't clear.

post and I will add it to original at the top.

Enhanced Nextion 2.4" NX3224K024
This will be the lcd i will start using.
It is not connected currently, and with it connected still gives same compile errors.

 

The issue is that my Arduino sketch won't compile anymore just when i start adding nextion.h
Commented out all other calls/definitions required to control the lcd, and even then it will no longer compile.


 

which MCU?  STM32F103, ATMega2560, Uno?

I am not the one to attempt to debug this Arduino code in C.

But there are other Arduino users that may help

There was LCD code, the Nextion is not an LCD,

but rather the Nextion display is manipulated via text commands

- just checking that this is clear.


Does not matter for which platform you try to compile. Nano/Uno/Mega. It just fails.

Already altered NexConfig.h as described on github documentation. and disabled
#define DEBUG_SERIAL_ENABLE ---> //#define DEBUG_SERIAL_ENABLE
same for:
#define dbSerial Serial    ---> #define dbSerial Serialxxx
#define nexSerial Serial2  ---> #define nexSeria Serialxxx

Does not help also.


 

all LCD (16x2) code in previous version have been removed/commented out.

 

The reason why I asked which MCU you are using is:

Those that are familiar with your MCU are more likely to look

I am not likely to read a PIC thread if I don't know PICs

Just trying to help make this thread so you might get help.


The only thing using Software Serial in Nextion is

NexUpload -> used to swap out TFTs = advanced app.


so perhaps removing these two (.h and .cpp) files may help

you can always download them later from github later.


but __vector_5 - I have no idea

And I have STM32s, ESPs, a Due, a Mega and an Uno

still never saw anything like it.

If you could help me excluding the NexUpload.h reference would be great.
Probably Nextion.h is adding all these?

 

The eagle has landed :)
Created a directory "parking"
Moved NexUpload.h and cpp files to there.

Actually strange as NexUpload is not specifically included in any *.h file. Seems IDE is compiling all source directories in scope and as such then has a reference to SoftwareSerial although never really addressed in any call (might not be how it should be...)

 

Yes, that's how the Arduino IDE works. Odd, but has been like that as long as I can remember.

 

 Thanks for the help in this topic. Probably will run into issue when i create dbSerial via separate usb/uart device. But that is for later concern.


Login or Signup to post a comment