Git Product home page Git Product logo

Comments (21)

rwaldron avatar rwaldron commented on August 17, 2024

Same thing happens when attempting to upload to the JewelBot (the actual device, not dev board)

from arduino-library.

rwaldron avatar rwaldron commented on August 17, 2024

After reading more at https://github.com/NordicSemiconductor/pc-nrfutil, I believe this is a duplicate of #1, so I'm closing

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

Are you putting the device in upload mode? (we need a better way to phrase that)

You need to hold down the bottom button for two seconds and it will flash purple to indicate it is ready to upload code.

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

Also, this is a different issue, so I reopened.

from arduino-library.

rwaldron avatar rwaldron commented on August 17, 2024

You need to hold down the bottom button for two seconds and it will flash purple to indicate it is ready to upload code.

Ok, I was definitely not doing that, so let me give it a try

from arduino-library.

rwaldron avatar rwaldron commented on August 17, 2024

bottom button

The one labelled "Action Button"?

Edit: Yes

from arduino-library.

rwaldron avatar rwaldron commented on August 17, 2024

Ok, now I get this:

Upgrading target on /dev/cu.usbserial-DB00W8D4 with DFU package /private/var/folders/xz/k2lxgs3s43180_tjwn1v_kwc0000gn/T/arduino_build_939294/jewelbots_blink.ino.zip. Flow control is disabled.

Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 19572
Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.
Failed to execute script main
Sending DFU init packet
Sending firmware file
DFU upgrade took 17.2695930004s
Device programmed.
Failed to execute script main

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

You're good! That means it went through.

"failed to execute script main" is a bug listed here. #1

Very confusing for coding, I'd like to tackle that one ASAP.

from arduino-library.

rwaldron avatar rwaldron commented on August 17, 2024

@SaraJo that's good news, but the example sketch doesn't seem to work.

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

Okay, can you paste the sketch here?

Sara J Chipps
862.201.3065
http://SaraJChipps.com http://sarajchipps.com/


No trees were killed in sending this message but a large number of

electrons were terribly inconvenienced.

Pre-order your Jewelbots http://jewelbots.com/

On Wed, Nov 23, 2016 at 1:30 PM, Rick Waldron [email protected]
wrote:

@SaraJo https://github.com/SaraJo that's good news, but the example
sketch doesn't seem to work.

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGuFXZA9bO_JgmNeOBLQ-O6gWUUzI7Qks5rBIY6gaJpZM4K5jBo
.

from arduino-library.

rwaldron avatar rwaldron commented on August 17, 2024
#include <Arduino.h>

LED led;

void setup() {
  // Put your setup code here, to run once.
}

void loop() {
  // Put your main code here, to run repeatedly:
  led.on(1, "blue", 650000);
}

I see the rainbow display and then the D202 LED settles on green.

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

What happens when you unplug it? Same? or, is this on the dev board.

@sm_davison just updated the firmware to not go through the loop until
unplugged, if you have the most recent and the dev board doesn't have the
battery attached that may be hard to test.

These are all things I am adding to the README as we encounter them. Thanks
for being the first eyes.

Sara J Chipps
862.201.3065
http://SaraJChipps.com http://sarajchipps.com/


No trees were killed in sending this message but a large number of

electrons were terribly inconvenienced.

Pre-order your Jewelbots http://jewelbots.com/

On Wed, Nov 23, 2016 at 3:44 PM, Rick Waldron [email protected]
wrote:

#include <Arduino.h>

LED led;
void setup() {
// Put your setup code here, to run once.
}
void loop() {
// Put your main code here, to run repeatedly:
led.on(1, "blue", 650000);
}

I see the rainbow display and then the D202 LED settles on green.

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGuFY-m9hG1v9_zTnS46eV4iqoVM7zLks5rBKW2gaJpZM4K5jBo
.

from arduino-library.

mbrewer avatar mbrewer commented on August 17, 2024

πŸ‘‹πŸΌ Hey Sara (& everyone else),

I noticed this thread dropped off. I'm having the issue in issue #1 with the Failed to execute script main while running the 'hello world' program (code same as pasted above in the thread).

The exception here is that I am booting the Jewelbot into coding mode before uploading. So in between those failure messages, the code seems to compile successfully. However, the light doesn't turn blue.

What might I be missing? I saw a link to the Python library pc-nrfutil, but it wasn't clear how we should make use of that, if at all.

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

Hi @mbrewer, have you unplugged your Jewelbot after coding?

the "Failed to execute script main" is a warning and shouldn't stop the device from accepting your sketch.

from arduino-library.

mbrewer avatar mbrewer commented on August 17, 2024

@SaraJo oopsβ€”yes, I have! I've been 1) connecting it via USB, 2) booting into coding mode, 3) uploading the code, and 4) unplugging it from USB. And yet, no blue light!

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

That's a puzzler. Do you mind updating the firmware to see if that is the issue? Or, have you done that already?

from arduino-library.

mbrewer avatar mbrewer commented on August 17, 2024

I don't mind at all! However, I will have to pick this thread back up once I get home -- on my work machine right now w/o my Jewelbot.

from arduino-library.

SaraJo avatar SaraJo commented on August 17, 2024

Okay, thank you! Much appreciated.

from arduino-library.

mbrewer avatar mbrewer commented on August 17, 2024

So as far as having the firmware 'updated', I'm currently using what the docs recommended.
image

Is there something else I can update it to?

from arduino-library.

mbrewer avatar mbrewer commented on August 17, 2024

Still having an issue with this. I uploaded the above-listed version of the firmware to the Jewelbot (had a blank sketch open + hit 'upload' button). I got a success rainbow.

Booted into coding mode and uploaded the 'hello world' program. Still no blue LED.

from arduino-library.

aulvi avatar aulvi commented on August 17, 2024

@mbrewer These are (roughly) the steps I performed:

  1. Turn on the JB, it does a little rainbow dance and buzz to let me know it's alive.
  2. Connect up all the USB cables, start the Arduino IDE, place the JB into coding mode by holding The One Button down for two seconds. It should then do a "purple fade" when you let off the button.
  3. Create an empty sketch and stick the LED led; led.on(1, "blue", 2000); code in the loop() function, exactly like the documentation says.
  4. Upload the sketch, the Arduino IDE shouldn't barf any errors.
  5. Unplug the cable from the JB and the led should light up immediately.

I don't know why, but it took me a couple of tries to get this to work. I ended up adding code for ALL of the LEDs (0-3) while debugging and it seemed fine. Best of luck!

from arduino-library.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.