What to do about the error: “Could Not Find Arduino Sdk Set Arduino_sdk_path”

This site contains affiliate links to products. We may receive a commission for purchases made through these links.

Are you trying to find the Arduino_sdk_path to no avail? If so, you are not alone, as this is a common issue that many people often complain about. However, this should not be an issue anymore in the near future.

The reason for this is that in this guide, you will be taken through a step-by-step process of all you need to do to find the Arduino_sdk_path.

If you carefully follow these steps mentioned below, you will be able to do away with the problem and go ahead and use your Arduino device. Therefore, let’s go straight ahead and take you through the steps to follow when you can’t find the solution.

AdobeStock 238109356 1

Steps To Repair This Error

If this error shows when you’re using a CLion plugin 1.2 or 1.2.1 or Arduino you’ve installed at /tools/arduino, you need to resolve such a problem by ensuring to place the Arduino SDK path in any one of the search paths.

if(UNIX)file(GLOBSDKPATHHINTS/usr/share/arduino*/opt/local/arduino*/opt/arduino*

/usr/local/share/arduino*)elseif(WIN32)set(SDK_PATH_HINTS “C:\\ProgramFiles\\Arduino””C:\\Program Files (x86)\\Arduino”)endif()

These search paths are usually located at the cmake/ArduinoToolchain.cmake:55 in your generated tasks.

If you’re making use of Cygwin on Windows alongside clion, you need to alter the UNIX SDK_PATH_HINTS. Once you do this, you’ll see something like:

if(UNIX)file(GLOBSDKPATHHINTS/usr/share/arduino*/opt/local/arduino*/opt/arduino/usr/local/share/arduino*/cygdrive/c/Program\ Files\ \(x86\)/Arduino)elseif(WIN32)set(SDKPATHHINTS”C:\\ProgramFiles\\Arduino””C:\\Program Files (x86)\\Arduino”)endif()

It’s important to notice the new line /cygdrive/cProgram\Files\(x86)/Arduino. However, you’ll need to also add /cygdrive/c/Program\Files/Arduino

By doing all this, you’ll have resolved the couldn’t find Arduino SDK Set Arduino_sdk_path issue. Nonetheless, there’s a likelihood that you might get another error after this, which shows:

Error:The C compiler “/cygdrive/c/Program Files (x86)/Arduino/hardware/tools/avr/bin/avr-

However, by doing this, you’ll realize you cannot use this plugin and Cygwin on windows. You should instead change to mingw, and subsequently, you will not see the error again. 

How Do You Go About Fixing Arduino Upload Error? 

After knowing how to remove the Could Not Find Arduino SDK Set Arduino_sdk_path issue, the next thing to do is knowing what steps to resolve the Arduino upload error. Knowing this is vital because this is something that affects your board’s functioning. But before you can even start addressing this issue, you need to start by choosing the correct Arduino IDE board.

After you’ve done this, the steps you need to take are:

Step 1: Confirm That You Have Picked The Correct Board

This should be the first thing you do and is done by clicking the Tools menu present on the Arduino IDE. After this, you should proceed to the Tools menu and pick Board. You should then proceed by choosing the correct Arduino board that you are using if, at the moment, it is not picked.

Step 2: Confirm You’ve Chosen The Port Which Is Being Used

You should now ensure to select the port to start uploading programs and should do this by clicking on Tools, after which the menu will open. Consequently, select Ports, and the submenu below will open. The next step is choosing the Arduino’s board COM port, and this normally for Windows is COM3 ports.

Step 3: Uninstall Any Installed Antivirus and Third-Party Firewall

If you’ve installed third-party antivirus software or a third-party firewall, serial port connections might be blocked. Therefore, you need to press the Windows together with the R keys simultaneously to start the Run accessory. You should then enter appwiz.cpl after opening the Programs and Features window I Run and click OK.

Once that’s done, go ahead and choose an antivirus software or third-party firewall. Follow this up by pressing the Uninstall button and choosing Yes after opening the confirmation dialog box.

Step 4: Verify That The USB Cable Of The Board Is Plugged In Fully

It’s vital to confirm that the USB cable of the Arduino cable is connected properly. If the connection at the ports is loose, make sure to press it inside to ensure a firm grip.

Step 5: Attempt To Connect The Arduino Board To the Alternative USB Cable

You should make sure that you’re using a USB cable that permits serial communication since some are only used for charging gadgets. If you have such a USB cable, you’ll be needed to adjust the USB cables when fixing the program upload errors. The best way to avoid such an issue from ever arising is to go to the Arduino site when getting a USB cable.

Step 6: Disconnect All Board Pins

Some Arduino errors are usually fixed by simply disconnecting every pin on your Arduino board. Therefore, you need to disconnect all the pins connected to the board. After this, attempt to upload the removed pins and once the uploading is complete, go ahead and insert the pins.

Step 7: Install Your Arduino Board’s Drivers

You might see program upload errors popping up if the Arduino board has not to be installed as it should. If this does happen, you should head over to the Run accessory while your PC and Arduino board are connected. Go ahead and key in devmgmt.msc and then Run and click the OK button. If you wish to expand this category, press on the option of other devices.

Should your Arduino gadget show an exclamation mark, right-click it and choose the option Update Driver Software. Go ahead and choose to Browse my computer to get the driver software options and press the Browse button. In the Arduino folder, choose the drivers subfolder and then click OK. After that, press Next to continue, followed by the Continue Anyway button.

Step 8: Reset Your Arduino Board

This is the last step, and it involves resetting your Arduino board. When doing this, you need to click on the red button next to the USB port of the Arduino Board, which is connected to the PC. Consequently, a yellow LED light will start to blink.

Conclusion

Seeing the error message could not find Arduino SDK Set Arduino_sdk_path is very frustrating and something that most people often struggle with resolving. Fortunately, thanks to this detailed guide, with the steps to implement for this issue to be resolved. 

With the detailed guide on how to know what to do exactly whenever you are faced with such an issue, you can now go ahead and deal with the problem without breaking a sweat.

About The Author