Please can someone explain to me these errors and possible solution as well.
Thank you
/usr/local/bin/arduino-cli compile --fqbn arduino:avr:uno --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/270796449/build --build-path /tmp/arduino-build-A94C48EB91A77BA93AD0567FD9C2D9C0 /tmp/270796449/sketch_jul12a
Using library Wire at version 1.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.4/libraries/Wire
Using library newping_1_9_4 at version 1.9.4 in folder: /home/builder/opt/libraries/newping_1_9_4
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `__vector_7'
/tmp/arduino-build-A94C48EB91A77BA93AD0567FD9C2D9C0/libraries/newping_1_9_4/NewPing.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Error during build: exit status 1
You have an interrupt conflict. Without seeing your code we will not be able to help.
See also https://bitbucket.org/teckel12/arduino-new-ping/wiki/Home#!multiple-definition-of-_vector_7-error ; if you don't come right post your code using code tags as described in How to get the best out of this forum .
// Edit
It will also be useful to know the board that you're using.
Thank you much for replying. I'm using ultrasonic sensor and buzzer and I found out when I remove the code for buzzer the error is gone, maybe that is where the conflict occur?? Im using arduino uno.
Using the tone library? The teckel12 link that I provided gives some possible alternatives to the tone library.
1 Like
Oh base on the link you gave, both NewPing and tone library used timer2. But I didnt use any library for the buzzer, though I used NewPing lib for ultrasonic.
system
Closed
March 13, 2023, 3:42am
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.