Problem programming SLM

MiniPOV, MiniPOV2 and MiniPOV3

Moderators: adafruit_support_bill, adafruit

Problem programming SLM

Postby ccoshow » Mon Nov 03, 2008 2:18 am

Hi. I bought a Brain Machine at Austin Maker Faire. I've set up my MiniPOV, and it tested out OK. I've followed the tutorials, and downloaded Avrdude, WinAVR, and the MiniPOV3 code, following the instructions in the Brain Machine manual. I've gotten to the following steps, and here is the error message I get:

C:\slm>make mypov.hex
ECHO is off.
Compiling: mypov.c
avr-gcc -c -I. -g -Os -funsigned-char -funsigned-bitfields -f
pack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-ad
hlns=mypov.lst -mmcu=attiny2313 -std=gnu99 mypov.c -o mypov.o
process_begin: CreateProcess(NULL, avr-gcc -c -I. -g -Os -funsigned-char -funsig
ned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000
000 -Wa,-adhlns=mypov.lst -mmcu=attiny2313 -std=gnu99 mypov.c -o mypov.o, ...) f
ailed.
make (e=2): The system cannot find the file specified.
make: *** [mypov.o] Error 2

C:\slm>



I'm using Windows XP. Can anyone help me figure out what's wrong? Thanks.
ccoshow
 
Posts: 9
Joined: Mon Nov 03, 2008 2:07 am

Re: Problem programming SLM

Postby mtbf0 » Mon Nov 03, 2008 3:33 am

does mypov.c exist in C:\slm?
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Re: Problem programming SLM

Postby ccoshow » Mon Nov 03, 2008 10:48 am

Yes, it's in there. I just double-checked.
ccoshow
 
Posts: 9
Joined: Mon Nov 03, 2008 2:07 am

Re: Problem programming SLM

Postby mtbf0 » Mon Nov 03, 2008 11:08 am

try the following from the command line to see what it says...

Code: Select all
avr-gcc -c -I. -g -Os -funsigned-char -funsigned-bitfields -f pack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-ad hlns=mypov.lst -mmcu=attiny2313 -std=gnu99 mypov.c -o mypov.o


looks like windows maybe isn't finding avr-gcc. does windows have a whereis command? check your path.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Re: Problem programming SLM

Postby ccoshow » Mon Nov 03, 2008 12:20 pm

Where should avr-gcc be? Should it be in the slm folder? What kind of file is it, c, or exe, or what?
ccoshow
 
Posts: 9
Joined: Mon Nov 03, 2008 2:07 am

Re: Problem programming SLM

Postby ccoshow » Mon Nov 03, 2008 12:27 pm

Hah! Found avr-gcc in my WinAVR\bin folder, so copied ALL files from that folder into my SLM folder. Then went back to the CMD prompt and tried MAKE MYPOV.HEX, and it worked fine. Thanks for your help!
ccoshow
 
Posts: 9
Joined: Mon Nov 03, 2008 2:07 am

Re: Problem programming SLM

Postby mtbf0 » Mon Nov 03, 2008 1:05 pm

the correct course of action would have been to add C:WinAVR\bin to your PATH environment variable. here's a page that tells how that can be done.

http://www.computerhope.com/issues/ch000549.htm

seems like diddling autoexec.bat was a whole lot easier.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca


Return to MiniPOV

Who is online

Users browsing this forum: No registered users and 0 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [113]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]