Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Timesquare Firmware Compilation
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Timesquare Firmware Compilation

by psgarsenal on Fri Jun 13, 2014 11:46 am

Hi everyone!
I just received my Timesquare watch today, everything works fine, but when I tried building the original firmware to test my ftdi, arduino gave me a lot of errors about variables in all the files that should be const instead of what those were...
Any idea of the origin of the problem?
Thanks for reading!
psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Re: Timesquare Firmware Compilation

by pburgess on Fri Jun 13, 2014 4:23 pm

Fetch the latest from Github, it should be good now.

Linux system, I'm guessing? This is some older code, and we've learned since then the Arduino compiler on Linux machines can be persnickety on certain variable declarations.

pburgess
 
Posts: 4057
Joined: Sun Oct 26, 2008 2:29 am

Re: Timesquare Firmware Compilation

by psgarsenal on Sat Jun 14, 2014 9:27 am

Hi!
All the errors I was getting are now gone, but I still get one:
/usr/share/arduino/libraries/Robot_Control/glcdfont.c:9:23: error: variable 'font' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned char font[] PROGMEM = {
^


Is this an error from the AdafruitGFX library?

And, yes, as you guessed, I'm using archlinux ^^
psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Re: Timesquare Firmware Compilation

by adafruit_support_rick on Sat Jun 14, 2014 9:56 am

You shouldn't be getting RobotControl files in your build. You have your libraries installed in the wrong location. You should not install them in the Arduino libraries folder. You must install them in a folder called 'libraries' in your sketchbook folder.

Please see our tutorial on Arduino Libraries
https://learn.adafruit.com/adafruit-all ... nstall-use

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Timesquare Firmware Compilation

by psgarsenal on Sat Jun 14, 2014 10:24 am

RobotControl was included in the arduino package I installed, and yes I was a bit suprised since it's not included anywhere in the code :/
psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Re: Timesquare Firmware Compilation

by adafruit_support_rick on Sat Jun 14, 2014 10:48 am

Right - RobotControl is a standard Arduino library. and old version of Adafruit_GFX is also included in the distribution. That's how I know you don't have your libraries in the right place.
You need to create the libraries folder in your sketchbook folder, and make sure to download the latest Adafruit_GFX from github and put it in that folder
https://github.com/adafruit/Adafruit-GFX-Library

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Timesquare Firmware Compilation

by psgarsenal on Sat Jun 14, 2014 11:33 am

It's working now, many thanks!
psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Please be positive and constructive with your questions and comments.