Timesquare Firmware Compilation

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Timesquare Firmware Compilation

Post by psgarsenal »

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!

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Timesquare Firmware Compilation

Post by pburgess »

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.

psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Re: Timesquare Firmware Compilation

Post by psgarsenal »

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 ^^

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Timesquare Firmware Compilation

Post by adafruit_support_rick »

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

psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Re: Timesquare Firmware Compilation

Post by psgarsenal »

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 :/

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Timesquare Firmware Compilation

Post by adafruit_support_rick »

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

psgarsenal
 
Posts: 8
Joined: Sun Jun 01, 2014 3:45 am

Re: Timesquare Firmware Compilation

Post by psgarsenal »

It's working now, many thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”