๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday October 14, 2019 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday October 11 will go out Tuesday October 15 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

problem with compiling
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

problem with compiling

by Eliot89 on Thu Jul 15, 2010 10: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 2245 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 2245 times




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

Re: problem with compiling

by mtbf0 on Fri Jul 16, 2010 8: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: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

Re: problem with compiling

by Eliot89 on Fri Jul 16, 2010 9:45 am

your wish is my command.


Makefile.txt
(5.21 KiB) Downloaded 347 times


minipovscreenshot2.JPG
minipovscreenshot2.JPG (39.43 KiB) Viewed 2232 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 336 times
Eliot89
 
Posts: 11
Joined: Tue Jan 06, 2009 9:33 pm

Re: problem with compiling

by Eliot89 on Sat Jul 17, 2010 3: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 9:33 pm

Re: problem with compiling

by Eliot89 on Sat Jul 17, 2010 3: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 9:33 pm

Re: problem with compiling

by mtbf0 on Sun Jul 18, 2010 8: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 | TOGGLE FULL SIZE
#include <signal.h>


to

Code: Select all | TOGGLE FULL SIZE
#include <interrupt.h>


and

Code: Select all | TOGGLE FULL SIZE
SIGNAL (SIG_TIMER1_COMPA) {


to

Code: Select all | TOGGLE FULL SIZE
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: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

Please be positive and constructive with your questions and comments.