problem with compiling

MiniPOV, MiniPOV2 and MiniPOV3

Moderators: adafruit_support_bill, adafruit

problem with compiling

Postby Eliot89 » Thu Jul 15, 2010 9:39 pm

I running this in windows XP. I used magician soft's generator to come up with a design. I then saved that as a c file in minipov3. When I try to compile that into a .hex file I get this:

minipovscreenshot.JPG
minipovscreenshot.JPG (80.23 KiB) Viewed 1719 times





ask me anything you guys may need to help.


it does end up creating the .hex file but when I try to upload it it doesn't work properly and looks like this:


minipovscreenshot1.JPG
minipovscreenshot1.JPG (45.7 KiB) Viewed 1719 times




thanks in advance,
Eliot
Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 8:33 pm

Re: problem with compiling

Postby mtbf0 » Fri Jul 16, 2010 7:39 am

probably a problem with the makefile. perhaps if we could see it.

also a directory listing would be useful. something like "dir eisb.*"
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Re: problem with compiling

Postby Eliot89 » Fri Jul 16, 2010 8:45 am

your wish is my command.


Makefile.txt
(5.21 KiB) Downloaded 122 times


minipovscreenshot2.JPG
minipovscreenshot2.JPG (39.43 KiB) Viewed 1706 times




although I can't imagine it being a problem with the makefile becase it works with everything else.



makefilec.txt
most likely the same as makefile.txt but this one is the c file that I copied into notepad.
(5.21 KiB) Downloaded 118 times
Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 8:33 pm

Re: problem with compiling

Postby Eliot89 » Sat Jul 17, 2010 2:13 am

I know this probably doesn't make any sense but I added eib.hex to the list or "program-whatever: whatever.hex" in the makefile and it loaded onto the attny without any problems.
Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 8:33 pm

Re: problem with compiling

Postby Eliot89 » Sat Jul 17, 2010 2:15 am

it still displays the "obsolete header file" warning when I compile the .hex file though. I guess that just isn't an issue.
Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 8:33 pm

Re: problem with compiling

Postby mtbf0 » Sun Jul 18, 2010 7:26 am

Eliot89 wrote:I know this probably doesn't make any sense but I added eib.hex to the list or "program-whatever: whatever.hex" in the makefile and it loaded onto the attny without any problems.


that would fix it.

Eliot89 wrote:it still displays the "obsolete header file" warning when I compile the .hex file though. I guess that just isn't an issue.


it will continue to do this. the use of the header file signal.h has been deprecated but is still supported. the way interrupts are handled has changed. mostly, i think, it's a matter of naming conventions. interrupt names now more closely follow names used in atmel's datasheets. some day you'll upgrade avr-libc and the warnings will become errors.

to avoid this change the following in your code...

Code: Select all
#include <signal.h>


to

Code: Select all
#include <interrupt.h>


and

Code: Select all
SIGNAL (SIG_TIMER1_COMPA) {


to

Code: Select all
ISR (TIMER1_COMPA_vect) {


ought to get rid of your warning.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca


Return to MiniPOV

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]