I'm new to Arduino board can someone please help me solve this issue. I have my university project submission within a week and I got stuck with this

Arduino: 1.8.19 (Windows 10), Board: "Arduino MKR WiFi 1010"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\vignesh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\vignesh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\vignesh\Documents\Arduino\libraries -fqbn=arduino:samd:mkrwifi1010 -vid-pid=2341_8054 -ide-version=10819 -build-path C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431 -warnings=none -build-cache C:\Users\vignesh\AppData\Local\Temp\arduino_cache_678742 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arduinoOTA.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.openocd.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -verbose C:\Users\vignesh\Documents\Arduino\arduino_secrets.h\arduino_secrets.h.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\vignesh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\vignesh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\vignesh\Documents\Arduino\libraries -fqbn=arduino:samd:mkrwifi1010 -vid-pid=2341_8054 -ide-version=10819 -build-path C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431 -warnings=none -build-cache C:\Users\vignesh\AppData\Local\Temp\arduino_cache_678742 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arduinoOTA.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.openocd.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -verbose C:\Users\vignesh\Documents\Arduino\arduino_secrets.h\arduino_secrets.h.ino

Using board 'mkrwifi1010' from platform in folder: C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13

Using core 'arduino' from platform in folder: C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13

Detecting libraries used...

"C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER="Arduino LLC"" "-DUSB_PRODUCT="Arduino MKR WiFi 1010"" -DUSE_BQ24195L_PMIC "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/api/deprecated" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/api/deprecated-avr-comp" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\variants\mkrwifi1010" "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\sketch\arduino_secrets.h.ino.cpp" -o nul

Generating function prototypes...

"C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER="Arduino LLC"" "-DUSB_PRODUCT="Arduino MKR WiFi 1010"" -DUSE_BQ24195L_PMIC "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/api/deprecated" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/api/deprecated-avr-comp" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\variants\mkrwifi1010" "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\sketch\arduino_secrets.h.ino.cpp" -o "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\preproc\ctags_target_for_gcc_minus_e.cpp"

"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER="Arduino LLC"" "-DUSB_PRODUCT="Arduino MKR WiFi 1010"" -DUSE_BQ24195L_PMIC "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/api/deprecated" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/api/deprecated-avr-comp" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino" "-IC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\variants\mkrwifi1010" "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\sketch\arduino_secrets.h.ino.cpp" -o "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\sketch\arduino_secrets.h.ino.cpp.o"

Compiling libraries...

Compiling core...

Using previously compiled file: C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\core\variant.cpp.o

Using precompiled core: C:\Users\vignesh\AppData\Local\Temp\arduino_cache_678742\core\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a

Linking everything together...

"C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++" "-LC:\Users\vignesh\AppData\Local\Temp\arduino_build_931431" -Os -Wl,--gc-sections -save-temps "-TC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\variants\mkrwifi1010/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431/arduino_secrets.h.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431/arduino_secrets.h.ino.elf" "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\sketch\arduino_secrets.h.ino.cpp.o" "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431\core\variant.cpp.o" -Wl,--start-group "-LC:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431/..\arduino_cache_678742\core\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a" -Wl,--end-group

C:\Users\vignesh\AppData\Local\Temp\arduino_build_931431/..\arduino_cache_678742\core\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a(main.cpp.o): In function `main':

C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/main.cpp:49: undefined reference to `setup'

C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13\cores\arduino/main.cpp:53: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Arduino MKR WiFi 1010.

Welcome to the forum.

Perhaps you can share your code (using code tags) and explain what you are trying to do?

Does your program contain the loop() function?

==
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project.

Big clue.

You can post code by using this method that adds the code-tags
There is an automatic function for doing this in the Arduino-IDE
just three steps

  1. press Ctrl-T for autoformatting your code
  2. do a rightclick with the mouse and choose "copy for forum"
  3. paste clipboard into write-window of a posting

best regards Stefan

#include <WiFiNINA.h>

char ssid[] = " ";       
char pass[] = " ";    
int status = WL_IDLE_STATUS;

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial);

  // attempt to connect to Wifi network:
  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to network: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network:
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }

  // you're connected now, so print out the data:
  Serial.println("You're connected to the network");

  Serial.println("----------------------------------------");
  printData();
  Serial.println("----------------------------------------");
}

void loop() {
  // check the network connection once every 10 seconds:
  delay(10000);
  printData();
  Serial.println("----------------------------------------");
}

void printData() {
  Serial.println("Board Information:");
  // print your board's IP address:
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);

  Serial.println();
  Serial.println("Network Information:");
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  // print the received signal strength:
  long rssi = WiFi.RSSI();
  Serial.print("signal strength (RSSI):");
  Serial.println(rssi);

  byte encryption = WiFi.encryptionType();
  Serial.print("Encryption Type:");
  Serial.println(encryption, HEX);
  Serial.println();
}

Hi,
I'm just trying to connect to my wifi network, and after running my code i'm getting those errors. :frowning:

Hello Stefan,
I have uploaded my code below.

Can you format the code by editing your post (pencil button), selecting the code and then clicking the </> button?

You may also want to remove your ESSID and password.

Yes, I did. Can you please help me with it?

Please try again.

It looks like you have only formatted the first (empty) line, not the code.

Now is the code got formatted?

Yes, much better. Thank you.

No. You're supposed to put your ENTIRE code file into ONE code block, not

every snippet
in its own
block.

But it is an improvement.

You should also state which library this "WiFiNINA.h" file comes from.

better but not yet good.
You divided your code into multiple sections.
There is a three clicks three keypresses-method for posting your complete sketch as one code-section.

What is so hard about opening your code in the

Arduino-IDE

and then
You can post code by using this method that adds the code-tags
There is an automatic function for doing this in the Arduino-IDE
just three steps

  1. press Ctrl-T for autoformatting your code
  2. do a rightclick with the mouse and choose "copy for forum"
  3. paste clipboard into write-window of a posting

best regards Stefan

The code you shared compiles just fine.

The code you just posted compiles successfully for me with ide 1.8.15.

If you are using the Windows App version of the IDE, you may want to switch to the Arduino download version for Windows & and newer.

But I'm still getting the error when I try to upload using programmer :frowning:.

Arduino: 1.8.19 (Windows 10), Board: "Arduino MKR WiFi 1010"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\vignesh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\vignesh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\vignesh\Documents\Arduino\libraries -fqbn=arduino:samd:mkrwifi1010 -vid-pid=2341_8054 -ide-version=10819 -build-path C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893 -warnings=none -build-cache C:\Users\vignesh\AppData\Local\Temp\arduino_cache_619319 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.openocd.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -verbose C:\Users\vignesh\Documents\Arduino\arduino_secrets.h\arduino_secrets.h.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\vignesh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\vignesh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\vignesh\Documents\Arduino\libraries -fqbn=arduino:samd:mkrwifi1010 -vid-pid=2341_8054 -ide-version=10819 -build-path C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893 -warnings=none -build-cache C:\Users\vignesh\AppData\Local\Temp\arduino_cache_619319 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.openocd.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -verbose C:\Users\vignesh\Documents\Arduino\arduino_secrets.h\arduino_secrets.h.ino

Using board 'mkrwifi1010' from platform in folder: C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13

Using core 'arduino' from platform in folder: C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13

Detecting libraries used...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino MKR WiFi 1010\"" -DUSE_BQ24195L_PMIC "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp" -o nul

Generating function prototypes...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino MKR WiFi 1010\"" -DUSE_BQ24195L_PMIC "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp" -o "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino MKR WiFi 1010\"" -DUSE_BQ24195L_PMIC "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp" -o "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp.o"

Compiling libraries...

Compiling core...

Using previously compiled file: C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893\core\variant.cpp.o

Using precompiled core: C:\Users\vignesh\AppData\Local\Temp\arduino_cache_619319\core\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a

Linking everything together...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" "-LC:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp.o" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/..\\arduino_cache_619319\\core\\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a" -Wl,--end-group

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.bin"

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.hex"

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf"

Sketch uses 12244 bytes (4%) of program storage space. Maximum is 262144 bytes.

Global variables use 2996 bytes (9%) of dynamic memory, leaving 29772 bytes for local variables. Maximum is 32768 bytes.

C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/bin/openocd.exe -d2 -s C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/share/openocd/scripts/ -f interface/cmsis-dap.cfg -c set telnet_port 0 -f target/at91samdXX.cfg -c telnet_port disabled; program {C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893/arduino_secrets.h.ino.hex} verify reset; shutdown 

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)

Licensed under GNU GPL v2

For bug reports, read

	http://openocd.org/doc/doxygen/bugs.html

debug_level: 2

0

Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.

none separate

adapter speed: 400 kHz

cortex_m reset_config sysresetreq

Error: unable to find CMSIS-DAP device

Error: No Valid JTAG Interface Configured.

Error: No Valid JTAG Interface Configured

Preformatted text.

Could you please guide me which programmer should I use if I use Arduino MKR WIFI 1010?

I'm still getting error when I use upload using programmer :frowning:

Arduino: 1.8.19 (Windows 10), Board: "Arduino MKR WiFi 1010"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\vignesh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\vignesh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\vignesh\Documents\Arduino\libraries -fqbn=arduino:samd:mkrwifi1010 -vid-pid=2341_8054 -ide-version=10819 -build-path C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893 -warnings=none -build-cache C:\Users\vignesh\AppData\Local\Temp\arduino_cache_619319 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.openocd.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -verbose C:\Users\vignesh\Documents\Arduino\arduino_secrets.h\arduino_secrets.h.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\vignesh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\vignesh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\vignesh\Documents\Arduino\libraries -fqbn=arduino:samd:mkrwifi1010 -vid-pid=2341_8054 -ide-version=10819 -build-path C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893 -warnings=none -build-cache C:\Users\vignesh\AppData\Local\Temp\arduino_cache_619319 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.openocd.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -verbose C:\Users\vignesh\Documents\Arduino\arduino_secrets.h\arduino_secrets.h.ino

Using board 'mkrwifi1010' from platform in folder: C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13

Using core 'arduino' from platform in folder: C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.13

Detecting libraries used...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino MKR WiFi 1010\"" -DUSE_BQ24195L_PMIC "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp" -o nul

Generating function prototypes...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino MKR WiFi 1010\"" -DUSE_BQ24195L_PMIC "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp" -o "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8054 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino MKR WiFi 1010\"" -DUSE_BQ24195L_PMIC "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\cores\\arduino" "-IC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp" -o "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp.o"

Compiling libraries...

Compiling core...

Using previously compiled file: C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893\core\variant.cpp.o

Using precompiled core: C:\Users\vignesh\AppData\Local\Temp\arduino_cache_619319\core\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a

Linking everything together...

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" "-LC:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13\\variants\\mkrwifi1010/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\sketch\\arduino_secrets.h.ino.cpp.o" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/..\\arduino_cache_619319\\core\\core_arduino_samd_mkrwifi1010_5aeac59a378e80c01caa0984674f6bfd.a" -Wl,--end-group

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.bin"

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf" "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.hex"

"C:\\Users\\vignesh\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\vignesh\\AppData\\Local\\Temp\\arduino_build_735893/arduino_secrets.h.ino.elf"

Sketch uses 12244 bytes (4%) of program storage space. Maximum is 262144 bytes.

Global variables use 2996 bytes (9%) of dynamic memory, leaving 29772 bytes for local variables. Maximum is 32768 bytes.

C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/bin/openocd.exe -d2 -s C:\Users\vignesh\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/share/openocd/scripts/ -f interface/cmsis-dap.cfg -c set telnet_port 0 -f target/at91samdXX.cfg -c telnet_port disabled; program {C:\Users\vignesh\AppData\Local\Temp\arduino_build_735893/arduino_secrets.h.ino.hex} verify reset; shutdown 

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)

Licensed under GNU GPL v2

For bug reports, read

	http://openocd.org/doc/doxygen/bugs.html

debug_level: 2

0

Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.

none separate

adapter speed: 400 kHz

cortex_m reset_config sysresetreq

Error: unable to find CMSIS-DAP device

Error: No Valid JTAG Interface Configured.

Error: No Valid JTAG Interface Configured.

I'm newbie in this I don't know which programmer should I use for Arduino MKR wifi 1010. Please help me in solving this issue.

Hi @vigneshcs. Please try using the Sketch > Upload menu item in the Arduino IDE to upload your sketch.

From the output you shared, I can tell you are attempting an "Upload Using Programmer" operation, which happens if you hold the Shift key while clicking the "Upload" button.

The "Upload Using Programmer" operation is only for advanced users who have an ISP programmer connected to their Arduino board, which you do not. You must do a normal "Upload" operation in order to upload normally over the USB cable to your MKR WiFi 1010 board.

The Tools > Programmer menu selection is only used when you are doing Tools > Burn Bootloader or "Upload Using Programmer". When you're doing a standard "Upload", the Tools > Programmer menu selection is completely ignored. So it makes no difference at all what you have selected from the Tools > Programmer menu.

You might see the term "programmer" mentioned in error messages from a failed upload (e.g., "programmer is not responding"), but these error messages are not referring to the same thing as the programmers listed in the Arduino IDE Tools > Programmer menu.

2 Likes