arduino iot opla, home automation, cant connect error message

  • Thread starter Deleted member 750607
  • Start date

Thread Starter

Deleted member 750607

Joined Dec 31, 1969
0
im trying to use the arduino OPLA IOT kit for home automation. the first project is to light up and control the color of the built in LEDs on the circular connector board.

so my code uploads to my arduino wifi mkr 1010... but when i run the program, the serial monitor shows this message:

Connection to "please work" failed
Retrying in "500" milliseconds
Connection to "please work" failed
Retrying in "500" milliseconds

(i named it "please work" after a few failed attempts)

dont understand, have been trying to figure this out myself...i just want the lights to turn on, and for the "dashboard" to control the color, blink speed, etc
 

djsfantasi

Joined Apr 11, 2010
9,156
im trying to use the arduino OPLA IOT kit for home automation. the first project is to light up and control the color of the built in LEDs on the circular connector board.

so my code uploads to my arduino wifi mkr 1010... but when i run the program, the serial monitor shows this message:

Connection to "please work" failed
Retrying in "500" milliseconds
Connection to "please work" failed
Retrying in "500" milliseconds

(i named it "please work" after a few failed attempts)

dont understand, have been trying to figure this out myself...i just want the lights to turn on, and for the "dashboard" to control the color, blink speed, etc
It would be very helpful, one might say necessary, to see your code! Click on the ellipsis icon and then select Code. You paste your code in between the tags.
 

Thread Starter

Deleted member 750607

Joined Dec 31, 1969
0
It would be very helpful, one might say necessary, to see your code! Click on the ellipsis icon and then select Code. You paste your code in between the tags.
***SO this is the sample code i coped and pasted from the project's own personal page on the arduino site/iot cloud****


#include "thingProperties.h"
#include <Arduino_MKRIoTCarrier.h>
MKRIoTCarrier carrier;

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

// Defined in thingProperties.h
initProperties();

// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
//Get Cloud Info/errors , 0 (only errors) up to 4
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();

//Wait to get cloud connection to init the carrier
while (ArduinoCloud.connected() != 1) {
ArduinoCloud.update();
delay(500);
}

delay(500);
CARRIER_CASE = false;
carrier.begin();
carrier.display.setRotation(0);

}

void loop() {
ArduinoCloud.update();
// Your code here
uint8_t r, g, b;
control_RGB.getValue().getRGB(r, g, b);

if (circle_RGB == true) {
for (int ring = 0; ring <= 4; ring++) {
carrier.leds.setPixelColor(ring, g, r, b);
carrier.leds.show();
delay(100);
carrier.leds.clear();
}
} else {
lightsOff();
}

if (blink_RGB == true) {
lightsOn();
delay(blink_speed);
lightsOff();
delay(blink_speed);
}

if (switch_RGB == true) {
lightsOn();
} else {
lightsOff();
}

if (relay_1 == true) {
carrier.Relay1.open();
} else {
carrier.Relay1.close();
}

if (relay_2 == true) {
carrier.Relay2.open();
} else {
carrier.Relay2.close();
}

delay(100);
}

void lightsOn() {
uint8_t r, g, b;
control_RGB.getValue().getRGB(r, g, b);
carrier.leds.setPixelColor(0, g, r, b);
carrier.leds.setPixelColor(1, g, r, b);
carrier.leds.setPixelColor(2, g, r, b);
carrier.leds.setPixelColor(3, g, r, b);
carrier.leds.setPixelColor(4, g, r, b);
carrier.leds.show();
}

void lightsOff() {
carrier.leds.setPixelColor(0, 0, 0, 0);
carrier.leds.setPixelColor(1, 0, 0, 0);
carrier.leds.setPixelColor(2, 0, 0, 0);
carrier.leds.setPixelColor(3, 0, 0, 0);
carrier.leds.setPixelColor(4, 0, 0, 0);
carrier.leds.show();
}


void onControlRGBChange() {
// Do something

}


void onBlinkRGBChange() {
// Do something
}



void onCircleRGBChange() {
// Do something
}


void onSwitchRGBChange() {
// Do something
}

void onRelay1Change() {
// Do something
}


void onRelay2Change() {
// Do something
}

void onBlinkSpeedChange() {
// Do something
}
 
Last edited by a moderator:

Thread Starter

Deleted member 750607

Joined Dec 31, 1969
0
It would be very helpful, one might say necessary, to see your code! Click on the ellipsis icon and then select Code. You paste your code in between the tags.

***SO this is the sample code i coped and pasted from the project's own personal page on the arduino site/iot cloud****


#include "thingProperties.h"
#include <Arduino_MKRIoTCarrier.h>
MKRIoTCarrier carrier;

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

// Defined in thingProperties.h
initProperties();

// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
//Get Cloud Info/errors , 0 (only errors) up to 4
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();

//Wait to get cloud connection to init the carrier
while (ArduinoCloud.connected() != 1) {
ArduinoCloud.update();
delay(500);
}

delay(500);
CARRIER_CASE = false;
carrier.begin();
carrier.display.setRotation(0);

}

void loop() {
ArduinoCloud.update();
// Your code here
uint8_t r, g, b;
control_RGB.getValue().getRGB(r, g, b);

if (circle_RGB == true) {
for (int ring = 0; ring <= 4; ring++) {
carrier.leds.setPixelColor(ring, g, r, b);
carrier.leds.show();
delay(100);
carrier.leds.clear();
}
} else {
lightsOff();
}

if (blink_RGB == true) {
lightsOn();
delay(blink_speed);
lightsOff();
delay(blink_speed);
}

if (switch_RGB == true) {
lightsOn();
} else {
lightsOff();
}

if (relay_1 == true) {
carrier.Relay1.open();
} else {
carrier.Relay1.close();
}

if (relay_2 == true) {
carrier.Relay2.open();
} else {
carrier.Relay2.close();
}

delay(100);
}

void lightsOn() {
uint8_t r, g, b;
control_RGB.getValue().getRGB(r, g, b);
carrier.leds.setPixelColor(0, g, r, b);
carrier.leds.setPixelColor(1, g, r, b);
carrier.leds.setPixelColor(2, g, r, b);
carrier.leds.setPixelColor(3, g, r, b);
carrier.leds.setPixelColor(4, g, r, b);
carrier.leds.show();
}

void lightsOff() {
carrier.leds.setPixelColor(0, 0, 0, 0);
carrier.leds.setPixelColor(1, 0, 0, 0);
carrier.leds.setPixelColor(2, 0, 0, 0);
carrier.leds.setPixelColor(3, 0, 0, 0);
carrier.leds.setPixelColor(4, 0, 0, 0);
carrier.leds.show();
}


void onControlRGBChange() {
// Do something

}


void onBlinkRGBChange() {
// Do something
}



void onCircleRGBChange() {
// Do something
}


void onSwitchRGBChange() {
// Do something
}

void onRelay1Change() {
// Do something
}


void onRelay2Change() {
// Do something
}

void onBlinkSpeedChange() {
// Do something
}
 

djsfantasi

Joined Apr 11, 2010
9,156
AND, I’m such a pain... Can you post a link to the project page. I see something suspicious about this sketch and would like to check it.

Also, when you post code, put it between code tags. Like this
[ CODE]put your code here[/CODE]​
 

djsfantasi

Joined Apr 11, 2010
9,156
Start at the beginning...

Have you confirmed that the Arduino MKR WiFi 1010 is working correctly before trying this sketch? Are all libraries successfully updated and you have the correct core loaded in the IDE? Have you run the Blink sketch?
 

Thread Starter

Deleted member 750607

Joined Dec 31, 1969
0
Start at the beginning...

Have you confirmed that the Arduino MKR WiFi 1010 is working correctly before trying this sketch? Are all libraries successfully updated and you have the correct core loaded in the IDE? Have you run the Blink sketch?

blink does not work either, code uploads fine, but nothing happens...maybe broken hardware?
 

djsfantasi

Joined Apr 11, 2010
9,156
blink does not work either, code uploads fine, but nothing happens...maybe broken hardware?
Not that I don’t believe you, but how do you know that Blink uploaded fine? In the IDE, set preferences for verbose output. Re-load Blink, and post the compile/upload output to the forum.

Back to the beginning as I said before...
 

Thread Starter

Deleted member 750607

Joined Dec 31, 1969
0
Not that I don’t believe you, but how do you know that Blink uploaded fine? In the IDE, set preferences for verbose output. Re-load Blink, and post the compile/upload output to the forum.

Back to the beginning as I said before...
IS THIS WHAT YOU MEAN??

/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:samd:mkrwifi1010 -build-cache /tmp -build-path /tmp/795869129/build -verbose -prefs runtime.tools.CMSIS.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs runtime.tools.CMSIS-Atmel.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs runtime.tools.arduinoOTA.path=/home/builder/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs runtime.tools.arm-none-eabi-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs runtime.tools.bossac.path=/home/builder/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs runtime.tools.openocd.path=/home/builder/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs runtime.tools.flashpack.path=/home/builder/.arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs runtime.tools.esptool.path=/home/builder/.arduino15/packages/esp8266/tools/esptool/2.5.0-3-20ed2b9 -prefs runtime.tools.arm-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-linux-gcc/4.9.3 -prefs runtime.tools.dfu-util.path=/home/builder/.arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino2 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs runtime.tools.sketchUploader.path=/home/builder/.arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0 -prefs runtime.tools.arduino101load.path=/home/builder/.arduino15/packages/Intel/tools/arduino101load/2.0.1 -prefs runtime.tools.mkspiffs.path=/home/builder/.arduino15/packages/esp8266/tools/mkspiffs/2.5.0-3-20ed2b9 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.arc-elf32.path=/home/builder/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs runtime.tools.core2-32-poky-linux.path=/home/builder/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0 -prefs runtime.tools.xtensa-lx106-elf-gcc.path=/home/builder/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9 -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8 -prefs runtime.tools.x86-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/x86-linux-gcc/7.2.0 -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -libraries /tmp/795869129/custom -libraries /tmp/795869129/pinned /tmp/795869129/Blink

Using board 'mkrwifi1010' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9

Using core 'arduino' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9

Detecting libraries used...

/home/builder/.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=10611 -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 -I/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/variants/mkrwifi1010 /tmp/795869129/build/sketch/Blink.ino.cpp -o /dev/null

Generating function prototypes...

/home/builder/.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=10611 -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 -I/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/variants/mkrwifi1010 /tmp/795869129/build/sketch/Blink.ino.cpp -o /tmp/795869129/build/preproc/ctags_target_for_gcc_minus_e.cpp

/home/builder/opt/arduino-builder/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/795869129/build/preproc/ctags_target_for_gcc_minus_e.cpp

Compiling sketch...

/home/builder/.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=10611 -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 -I/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/variants/mkrwifi1010 /tmp/795869129/build/sketch/Blink.ino.cpp -o /tmp/795869129/build/sketch/Blink.ino.cpp.o

Compiling libraries...

Compiling core...

/home/builder/.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=10611 -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 -I/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/variants/mkrwifi1010 /home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/variants/mkrwifi1010/variant.cpp -o /tmp/795869129/build/core/variant.cpp.o

Using precompiled core: /tmp/core/core_arduino_samd_mkrwifi1010_7a9d71449ffb72bbc6f41d7eadc8c898.a

Linking everything together...

/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -L/tmp/795869129/build -Os -Wl,--gc-sections -save-temps -T/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.9/variants/mkrwifi1010/linker_scripts/gcc/flash_with_bootloader.ld -Wl,-Map,/tmp/795869129/build/Blink.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 /tmp/795869129/build/Blink.ino.elf /tmp/795869129/build/sketch/Blink.ino.cpp.o /tmp/795869129/build/core/variant.cpp.o -Wl,--start-group -L/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Lib/GCC/ -larm_cortexM0l_math -lm /tmp/795869129/build/../../core/core_arduino_samd_mkrwifi1010_7a9d71449ffb72bbc6f41d7eadc8c898.a -Wl,--end-group

/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O binary /tmp/795869129/build/Blink.ino.elf /tmp/795869129/build/Blink.ino.bin

/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O ihex -R .eeprom /tmp/795869129/build/Blink.ino.elf /tmp/795869129/build/Blink.ino.hex

/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /tmp/795869129/build/Blink.ino.elf

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

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

Upload started

Programming with: Serial

Restarting in bootloader mode

Get port list before reset

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

Touching port /dev/cu.usbmodem14101 at 1200bps

Set DTR off

Wait for the port to disappear

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101] -> [/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101] -> [/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101] -> [/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101] -> [/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101] -> [/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101] -> [/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port]

Wait for the port to reappear

[/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port] -> [/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port]

[/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port] -> [/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port]

[/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port] -> [/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port]

[/dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port] -> [/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem14101 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem14101]

Found upload port: /dev/cu.usbmodem14101

Flashing with command:/Users/hill/.arduino-create/arduino/bossac/1.7.0-arduino3/bossac -i -d --port=cu.usbmodem14101 -U true -i -e -w -v /var/folders/n5/z2gx7xvj2x140_3rshcsmct00000gn/T/arduino-create-agent139871132/Blink.bin -R

Set binary mode

readWord(addr=0)=0x20007ffc

readWord(addr=0xe000ed00)=0x410cc601

readWord(addr=0x41002018)=0x10010305

version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14

chipId=0x10010005

Connected at 921600 baud

readWord(addr=0)=0x20007ffc

readWord(addr=0xe000ed00)=0x410cc601

readWord(addr=0x41002018)=0x10010305

Atmel SMART device 0x10010005 found

write(addr=0x20004000,size=0x34)

writeWord(addr=0x20004030,value=0x10)

writeWord(addr=0x20004020,value=0x20008000)

Device : ATSAMD21G18A

readWord(addr=0)=0x20007ffc

readWord(addr=0xe000ed00)=0x410cc601

readWord(addr=0x41002018)=0x10010305

Chip ID : 10010005

version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14

Version : v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14

Address : 8192

Pages : 3968

Page Size : 64 bytes

Total Size : 248KB

Planes : 1

Lock Regions : 16

Locked : readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

readWord(addr=0x41004020)=0xffff

none

readWord(addr=0x41004018)=0

Security : false

Boot Flash : true

readWord(addr=0x40000834)=0x7000a

BOD : true

readWord(addr=0x40000834)=0x7000a

BOR : true

Arduino : FAST_CHIP_ERASE

Arduino : FAST_MULTI_PAGE_WRITE

Arduino : CAN_CHECKSUM_MEMORY_BUFFER

Erase flash

chipErase(addr=0x2000)

done in 0.830 seconds

Write 12284 bytes to flash (192 pages)

write(addr=0x20005000,size=0x1000)

writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)

[========== ] 33% (64/192 pages)write(addr=0x20005000,size=0x1000)

writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)

[==================== ] 66% (128/192 pages)write(addr=0x20005000,size=0x1000)

writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)

[==============================] 100% (192/192 pages)

done in 0.083 seconds

Verify 12284 bytes of flash with checksum.

checksumBuffer(start_addr=0x2000, size=0x1000) = 56c1

checksumBuffer(start_addr=0x3000, size=0x1000) = e065

checksumBuffer(start_addr=0x4000, size=0xffc) = 9927

Verify successful

done in 0.012 seconds

CPU reset.

readWord(addr=0)=0x20007ffc

readWord(addr=0xe000ed00)=0x410cc601

readWord(addr=0x41002018)=0x10010305

writeWord(addr=0xe000ed0c,value=0x5fa0004)
 

djsfantasi

Joined Apr 11, 2010
9,156
Exactly! Thanks.

Ok, it does look a if the load was successful. So perhaps it is hardware. Do you have another unit?

Not being familiar with the MKR WiFi MCU, I’m at a standstill. There are questions I have. Why does the loader connect at both 1200 bps and 19.2 kbps? What are the locked segments? It looks like entire memory may be locked (at 64 bytes/page, 248k is near 16 pages). And does the module have a boot loader programmed (it looks like it does).

And you are sure that the correct Arduino core module and libraries have been loaded? Again I would have expected evidence that they were not, but none is shown in the output you’ve graciously provided.

At this point, try another module, updated, or find someone familiar with that particular board. Sorry my efforts were unsuccessful.
 

Thread Starter

Deleted member 750607

Joined Dec 31, 1969
0
Exactly! Thanks.

Ok, it does look a if the load was successful. So perhaps it is hardware. Do you have another unit?

Not being familiar with the MKR WiFi MCU, I’m at a standstill. There are questions I have. Why does the loader connect at both 1200 bps and 19.2 kbps? What are the locked segments? It looks like entire memory may be locked (at 64 bytes/page, 248k is near 16 pages). And does the module have a boot loader programmed (it looks like it does).

And you are sure that the correct Arduino core module and libraries have been loaded? Again I would have expected evidence that they were not, but none is shown in the output you’ve graciously provided.

At this point, try another module, updated, or find someone familiar with that particular board. Sorry my efforts were unsuccessful.

thanks so much! i had no idea where to begin!

this is very helpful. im going to request a replacement board for the kit i got. looks like the arduino web site says one can request a replacement for a defective board.


thanks again, a huge help!!!
 
Top