using POV to do Knight Rider effect?

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
jaydmdigital
 
Posts: 5
Joined: Sat Nov 21, 2009 6:38 pm

Re: using POV to do Knight Rider effect?

Post by jaydmdigital »

Tones wrote:That did it, thanks!

But I'd like to understand what's happening here in a little more depth. Why is it that "program-eyebeam: eyebeam.hex" works, but "program-cylon:cylon.hex" fails?
From the makefile

Code: Select all

# Default target.
all: 	begin gccversion \
	minipov.hex all_leds.hex alt_leds.hex mypov.hex test_leds.hex \
	largeimage.hex  makefair.hex makezine.hex eyebeam.hex digg.hex make.hex \
	finished end
You have to make sure your cylon.hex is in that list. The program-cylon: is looking for that .hex file to program the AVR with, but until it's built, it won't find it.

-Jay

Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: using POV to do Knight Rider effect?

Post by Tones »

I tried adding "cylon.hex" to that list, so that it looks like this:

Code: Select all

# Default target.
all: 	begin gccversion \
	minipov.hex all_leds.hex alt_leds.hex mypov.hex test_leds.hex \
	largeimage.hex  makefair.hex makezine.hex eyebeam.hex digg.hex make.hex cylon.hex \
	finished end
But this does not solve the bug. I'm receiving the same error message as before: "No rule to make target `cylon.hex', needed by `program-cylon'. Stop."

User avatar
jaydmdigital
 
Posts: 5
Joined: Sat Nov 21, 2009 6:38 pm

Re: using POV to do Knight Rider effect?

Post by jaydmdigital »

Code: Select all

# Default target.
all: 	begin gccversion \
	minipov.hex all_leds.hex alt_leds.hex mypov.hex test_leds.hex \
	largeimage.hex  makefair.hex makezine.hex eyebeam.hex digg.hex make.hex \
        cylon.hex \
	finished end
The \ on the end of each line means there is more than one line. I couldn't tell if you had left it off the end after make.hex, or it the BBS software wrapped that line.

-Jay

Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: using POV to do Knight Rider effect?

Post by Tones »

Sorry -- yes "cylon" is on the same line as everything else, it was just wrapped by the BB software.

User avatar
jaydmdigital
 
Posts: 5
Joined: Sat Nov 21, 2009 6:38 pm

Re: using POV to do Knight Rider effect?

Post by jaydmdigital »

Ok, I should have tested it before I said anything.

I just tried the makefile only adding in the program-cylon: cylon.hex line. The makefile compiled it no problem. I suggest you upgrade your WinAVR to the latest version http://sourceforge.net/projects/winavr/files/WinAVR/ as I had to.

Code: Select all

C:\engineering\projects\WinAVR\sample\minipovfirmware>make -f makefile program-cylon

Compiling: cylon.c
avr-gcc -c -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=cylon.lst  -mmcu=attiny2313 -
In file included from cylon.c:3:
c:/engineering/projects/winavr/lib/gcc/../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete.  Use <avr/interrupt.h>."
cylon.c:93: warning: pointer targets in initialization differ in signedness

Linking: cylon.elf
avr-gcc -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=cylon.o  -mmcu=attiny2313 -std=g
,-Map=.map,--cref


Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: using POV to do Knight Rider effect?

Post by Tones »

I'm using the most recent version of avrdude on MacOS.

User avatar
jaydmdigital
 
Posts: 5
Joined: Sat Nov 21, 2009 6:38 pm

Re: using POV to do Knight Rider effect?

Post by jaydmdigital »

Tones wrote:I'm using the most recent version of avrdude on MacOS.
Yep, I said WinAVR :) So now that I know you have a Mac, you'll need the avr-gcc properly set up:
http://www.ladyada.net/learn/avr/setup-mac.html

You issue it not avrdude (the flash burning software) it's avr-gcc and the compiling process.
You will probably have to edit the directories that the makefile is using. Here's mine:

Code: Select all

# Define directories, if needed.
DIRAVR = c:/engineering/projects/winavr
DIRAVRBIN = $(DIRAVR)/bin
DIRAVRUTILS = $(DIRAVR)/utils/bin
DIRINC = .
DIRLIB = $(DIRAVR)/avr/lib

Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: using POV to do Knight Rider effect?

Post by Tones »

:) OK so to be more specific I'm using the most recent AvrMacPack.

I set DIRAVR to MacPack's home:

Code: Select all

DIRAVR = /usr/local/CrossPack-AVR
But this has not changed the error message.

I don't think the problem is that it can't find AVR-GCC. Its home was already in my PATH.

Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: using POV to do Knight Rider effect?

Post by Tones »

OK I've figured out ways around this by using Makefiles from other projects ... so I'm still not sure what was wrong, but it's not important anymore. Thanks for the help! :D

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

Return to “MiniPOV”