[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
Plum Geek Forum • SOLVED: problem uploading Arduino Sketch - Page 2
Page 2 of 3

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 4:24 am
by esba1ley

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 4:26 am
by gpvillamil
Perhaps Kevin changed the Ringowire libraries for Spirit, but we are still using the old ones?

All my other libraries are current and working.

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 4:33 am
by gpvillamil

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 4:50 am
by esba1ley

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 5:02 am
by esba1ley
See this thread:

https://forum.arduino.cc/index.php?topic=71580.0

BEFORE WE DO ANYTHING:

If we get this wrong, we can "brick" the board...

Kevin: What should the fuses be so we can reset them?

-Erik

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 12:03 pm
by gpvillamil
I don’t think you can change the fuses when uploading via USB using the IDE... The thread discusses using an ISP.

Though it does look like a timing issue, and the fuses are wrong for an Uno. Perhaps Kevin used an ISP to program the boards, and used non standard fuse settings?

In fact I’m fairly certain this is what happened: an ISP was used to program the boards, because this would let you burn the bootloader and demo sketch at the same time. However the fuses that would let the IDE recognize it as an Uno board were not set (eg enable full USB vs serial over USB), so we are not able to upload correctly configured code.

Easy enough to fix w an ISP but I’d like some info on where to hook it up.

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 3:03 pm
by gpvillamil
Don’t even need an ISP, the RPi GPIO pins are already connected to the Arduino. Just need the pin assignments.

https://learn.adafruit.com/program-an-a ... s/overview

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 4:34 pm
by gpvillamil

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 4:52 pm
by gpvillamil

Re: problem uploading Arduino Sketch

Posted: Sun Feb 04, 2018 6:58 pm
by esba1ley
I GOT IT!

SO it turns out by close inspection, it looks like the clock crystal next to the ATMega328p was 8MHz... so... by comparison I started looking at "which adruino boards have an ATMega328p, but have an 8MHz crystal, not a 16MHz crystal"... lo and behold, the Magical Arduino IDE settings for uplaod are:

Board: "Arduino Pro or Pro Mini"
Processor: "ATMega328 (3.3V, 8Hz)"
Programmer: "ArduinoISP"

By using these settings, I was able to build and re-burn the pre-loaded Demo code from PlumGeek's site, and I get proper behavior of the NeoPixels.

Yaaaaaay!

I think the reason we're not seeing the fuse values properly is that we're using a bootloader-enabled way of flashing the sketches on to the chip -- had we connected via the ISP header, we'd have both visibility (and control) of that.

I'm so glad we didn't have to head down that road... even if we had an ISP programmer, it would have been possible to get the chip into a configuration where we'd have to use a High Voltage Parallel/Serial programmer to fix the issue... and I was hoping we weren't staring down the barrel of needing that. Whew!

So, based on the fact that I fixed this via the proper IDE settings, my original hunch that there's something in the build process that sets what the processor speed is for internal variables seems to be correct.

Moral of the story: Use the above settings when using the Arduino IDE to program the board.

Now: if we could just get the proper configuration for the on-board RasPi to program the arduino, that will make us completely self-contained and not reliant on an external computer at all for development!