problem with compiling

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 9:33 pm

problem with compiling

Post by Eliot89 »

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 2474 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 2474 times


thanks in advance,
Eliot

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: problem with compiling

Post by mtbf0 »

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

also a directory listing would be useful. something like "dir eisb.*"

Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 9:33 pm

Re: problem with compiling

Post by Eliot89 »

your wish is my command.

Makefile.txt
(5.21 KiB) Downloaded 363 times
minipovscreenshot2.JPG
minipovscreenshot2.JPG (39.43 KiB) Viewed 2461 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 353 times

Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 9:33 pm

Re: problem with compiling

Post by Eliot89 »

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 9:33 pm

Re: problem with compiling

Post by Eliot89 »

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

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: problem with compiling

Post by mtbf0 »

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.

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

Return to “MiniPOV”