I can run the make program-(file) on any of the examples but when I try doing this on one of the hex files after editing the .c file and making the new hex I get the following.
C:\MiniPOV>make program-mypov2
avrdude -p attiny2313 -P com1 -c dasa -U flash:w:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
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
avrdude: write to file '' failed
avrdude: safemode: Fuses OK
avrdude done. Thank you.
make: *** [program-mypov2] Error 1
C:\MiniPOV>
You can see from the following ls command that the file does exsist.
C:\MiniPOV>ls
Makefile eyebeam.c makeabc.c minipov.c test_leds.hex
all_leds.c eyebeam.hex makeabc.hex minipov.hex test_sensor.c
all_leds.hex largeimage.c makeabc.lst mypov.c test_serial.c
alt_leds.c largeimage.hex makefair.c mypov2.c
alt_leds.hex make.c makefair.hex mypov2.hex
digg.c make.hex makezine.c mypov2.lst
digg.hex make.lst makezine.hex test_leds.c
C:\MiniPOV>
attached is a copy of the .c file that made the .hex file.
Problem with edited files
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 11
- Joined: Mon Apr 06, 2009 7:23 pm
Problem with edited files
- Attachments
-
- mypov2.c
- (3.21 KiB) Downloaded 322 times
-
- Posts: 1645
- Joined: Sat Nov 10, 2007 12:59 am
Re: Problem with edited files
is program-mypov2 a valid target in the makefile. the command line to upload the file mypov2.hex should be
doesn't look like your makefile knows about mypov2.
Code: Select all
avrdude -p attiny2313 -P com1 -c dasa -U flash:w:mypov2.hex
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Problem with edited files
yeah you need to keep the name mypov
dont rename the .c file
dont rename the .c file
-
- Posts: 1645
- Joined: Sat Nov 10, 2007 12:59 am
Re: Problem with edited files
... or you could add a line like this
to your makefile somewhere down among the lines that look like this
Code: Select all
program-mypov2: mypov2.hex
Code: Select all
program-alt_leds: alt_leds.hex
program-mypov: mypov.hex
program-test_sensor: test_sensor.hex
-
- Posts: 11
- Joined: Mon Apr 06, 2009 7:23 pm
Re: Problem with edited files
Thank you all!
Please be positive and constructive with your questions and comments.