PROGRAMMING HELP

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

PROGRAMMING HELP

Post by Jevanko »

ok so i am trying to program my minipov kit using the alt leds program and i get the out of terminal

jmevanko$ make program-alt_leds
make: *** No rule to make target `program-alt_leds'. Stop.

how do i fix this? im using a mac

Thanks
-Jason

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: PROGRAMMING HELP

Post by adafruit »

you're not in the right directory. go to the directory where the Makefile and .c are

Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

how do i do that?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: PROGRAMMING HELP

Post by adafruit »


Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

it worked! thank you. just one more question. how do i compile a file to burn onto the chip? im doing the brain machine kit and i can't figure it out

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: PROGRAMMING HELP

Post by adafruit »

you can rename the .c file to mypov.c (easiest)
or you can edit the makefile to add a new .hex file to the list of those made (tougher)

Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

which file do i change to mypov.c? there are a ton of .c files in the minipov firmware folder

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

Re: PROGRAMMING HELP

Post by mtbf0 »

Jevanko wrote:which file do i change to mypov.c? there are a ton of .c files in the minipov firmware folder
the file slm.c from the zip file with the brainwave firmware in it.

Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

ok, sorry for all the questions but im new to the whole programing thing. After i change the name of that file i use terminal to transfer it to the board?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: PROGRAMMING HELP

Post by adafruit »

you may want to read the article about the brainwave machine in detail. it probably has step-by-step instructions?

Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

it does, but for PC. would these work for mac?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: PROGRAMMING HELP

Post by adafruit »

well you should try first, no?

Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

ok so i did all that and it worked except it gave me an error.

avrdude: erasing chip
avrdude: reading input file ""
avrdude: error opening : No such file or directory
avrdude: input file auto detected as invalid format
avrdude: can't open input file : No such file or directory

what caused this?

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

Re: PROGRAMMING HELP

Post by mtbf0 »

did you compile the program?

without screenshots i have to imagine what you're doing.

did you put slm.c in the directory with the minipov3 firmware?

did you rename slm.c to mypov.c as in the discussion above.

if so

Code: Select all

make program-mypov
ought to do the trick for you.

or, if you just unzip mitch's file and cd into the directory you put it in

Code: Select all

make program-slm
should get you there.

Jevanko
 
Posts: 13
Joined: Mon Nov 30, 2009 12:29 am

Re: PROGRAMMING HELP

Post by Jevanko »

so i tryed to reprogram my chip because it wasn't working, and now its giving me a whole new error. i am "cd" in the correct file.
Attachments
screen.tiff
screen.tiff (37.3 KiB) Viewed 3862 times

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

Return to “MiniPOV”