Electronic Animated Eyes Compile Error

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
prairietech
 
Posts: 51
Joined: Tue Apr 10, 2012 11:27 pm

Electronic Animated Eyes Compile Error

Post by prairietech »

Getting the errors below when trying to compile. I'm used to installing missing libraries but these errors appear to be in the code.
I'm not sure how to contact Mr. Burgess direct so I'm posting here.



In file included from uncannyEyes.ino:19:0:
defaultEye.h:4: error: size of array 'sclera' is too large
const uint16_t sclera[SCLERA_HEIGHT][SCLERA_WIDTH] = {
^
defaultEye.h:5009: error: size of array 'iris' is too large
const uint16_t iris[IRIS_MAP_HEIGHT][IRIS_MAP_WIDTH] = {
^
uncannyEyes.ino: In function 'void drawEye(uint8_t, uint32_t, uint8_t, uint8_t, uint8_t, uint8_t)':
uncannyEyes:191: error: 'sclera' was not declared in this scope
uncannyEyes:197: error: 'iris' was not declared in this scope
uncannyEyes:199: error: 'sclera' was not declared in this scope
uncannyEyes:203: error: 'KINETISK_SPI0' was not declared in this scope
uncannyEyes:204: error: 'KINETISK_SPI0' was not declared in this scope
uncannyEyes:204: error: 'SPI_PUSHR_CTAS' was not declared in this scope
uncannyEyes:204: error: 'SPI_PUSHR_CONT' was not declared in this scope
uncannyEyes:208: error: 'KINETISK_SPI0' was not declared in this scope
uncannyEyes:208: error: 'SPI_SR_TCF' was not declared in this scope
size of array 'sclera' is too large

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Electronic Animated Eyes Compile Error

Post by adafruit_support_mike »

The first couple of errors are the ones that matter. Everything else is just secondary trouble caused by those.

It looks like you're trying to compile the code for a device that doesn't have enough PROGMEM to hold the array. What board are you using?

User avatar
prairietech
 
Posts: 51
Joined: Tue Apr 10, 2012 11:27 pm

Re: Electronic Animated Eyes Compile Error

Post by prairietech »

I'm using the Teensy 3.1 as listed in the tutorial and ordered it by clicking add to cart.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Electronic Animated Eyes Compile Error

Post by adafruit_support_mike »

Okay, that checks. For the sake of completeness, could you post the code you're trying to compile please? Let's make sure there are no glitches or stray characters anywhere.

User avatar
prairietech
 
Posts: 51
Joined: Tue Apr 10, 2012 11:27 pm

Re: Electronic Animated Eyes Compile Error

Post by prairietech »

I don't think I can simply cut and paste the code here. The file is very large. Here is the source I used:

https://github.com/adafruit/teensy3.1_eyes

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Electronic Animated Eyes Compile Error

Post by adafruit_support_mike »

Did you clone the repo or download it as a zipfile?

User avatar
prairietech
 
Posts: 51
Joined: Tue Apr 10, 2012 11:27 pm

Re: Electronic Animated Eyes Compile Error

Post by prairietech »

SOLVED
I tried installing the arduino ide and teensy bootloader on another computer and now it is working. Still several warning lines in red text while compiling but they seem to resolve themselves. The bootloader finally prompts me to push the program button and the code loaded with the desired results!

My first attempt was using a computer that uses a SSD as C drive for the OS. D drive is where I install all programs. I noticed warnings when compiling of duplicate programs on C and D. It also appeared that each time I would verify the code, there were different warning statements. I try to keep C drive only for the OS but some programs wont install just on the D drive.

For now.......case closed. Thank you for your help!

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Electronic Animated Eyes Compile Error

Post by adafruit_support_mike »

Glad to hear it's working for you.

User avatar
TimWalker
 
Posts: 3
Joined: Mon Oct 15, 2018 11:47 am

Re: Electronic Animated Eyes Compile Error

Post by TimWalker »

I'm curious what might have fixed that by going to a new computer. I don't have that option at the moment, but I am getting the same error. I tried various other boards in the IDE to no avail. Any help is very much appreciated. Thank you. Tim

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Electronic Animated Eyes Compile Error

Post by adafruit_support_mike »

What microcontroller are you using?

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

Return to “General Project help”