Hello;
When I try to compile my project I received the message error:
Compilation error: Error: 2 UNKNOWN: no FQBN provided
Thank in advance for your replies.
Regards.
Hello;
When I try to compile my project I received the message error:
Compilation error: Error: 2 UNKNOWN: no FQBN provided
Thank in advance for your replies.
Regards.
Hi @kimaali. This error occurs when you have not selected a board. Unlike the classic Arduino IDE, the Arduino IDE 2.x does not have any boards selected on startup. There is also currently a bug that causes the board selection to be forgotten every time you open a new sketch.
So you only need to select your board from the Tools > Board menu. After that, you'll be able to compile.
Please let me know if you have any problems after doing that.
Hi, thanks for your reply. I installed the board and the problem is gone.
Regards.
You're welcome. I'm glad to hear it's working now. Enjoy!
Per
Here the same error message but I had selected a Arduino Uno board. What do I do wrong?
Please do this:
Using board 'uno' from platform in folder: C:\Users\Frits\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Using core 'arduino' from platform in folder: C:\Users\Frits\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Detecting libraries used...
"C:\\Users\\Frits\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Frits\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Frits\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Frits\\AppData\\Local\\Temp\\arduino-sketch-6C37462484ED0276831626100B8279F1\\sketch\\transitOost_kruising_led_sound.ino.cpp" -o nul
Alternatives for Adafruit_PWMServoDriver.h: []
ResolveLibrary(Adafruit_PWMServoDriver.h)
-> candidates: []
Compilation error: Error: 2 UNKNOWN: exit status 1
The used ino file compiled in version 1.8.10 and 1.8.4 has no error.
Sorry for my bad English, it's not my native
Update: Solved....
Forgot to set the sketchbook location
Frits1956:
Sorry for my bad English, it's not my native
No worries. I think we get by well enough. I'm sure your English is much better than my abilities in whatever your native language might be.
Frits1956:
Update: Solved....
Forgot to set the sketchbook location
I'm glad to hear you found the solution. Thanks for taking the time to post an update.
Regards, Per
My non-original Arduino Uno has this error when compiling also there is a warning sign close to Arduino's model name in the upper part. Meanwhile original arduino works without problems.
Is there option to make this work?
What error is that @brutus_002? Which IDE version are you using, and on which kind of computer?
Yeah it's weird
I'm testing ide 2.0 and the error is the same as the previous upper.
It's getting weirder, because "original" arduino also stopped working (uploading). I've noticed that COM is different than in ide 1.8 (where everything is working fine), but then all problems disappeared.
brutus_002:
My non-original Arduino Uno has this error when compiling
Please make sure you have Tools > Board > Arduino AVR Boards > Arduino Uno selected.
brutus_002:
there is a warning sign close to Arduino's model name in the upper part. Meanwhile original arduino works without problems.
The warning sign indicates that the port of the Arduino board could not be detected. This is normal and expected for Uno derivative boards that use general purpose USB chips like the CH340 instead of the ATmega16U2 chip used by the official Uno and true clones. The ATmega16U2 chips run a custom firmware that produces a VID/PID USB identifier that is owned by Arduino and only used for Uno boards, so the IDE can identify those boards. But the CH340 and other general purpose USB chips use the VID/PID provided by the manufacturer so the Arduino IDE has no way of knowing which Arduino board is on the other side of that chip, or if it's even an Arduino board at all. So in this case the user must select the correct serial port.
brutus_002:
I've noticed that COM is different than in ide 1.8
Make sure you have selected the correct port. You can tell which port is your Arduino board because it will appear/disappear when you plug/unplug the USB cable (but make sure to reopen the menu first to refresh the ports list).
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.