Author Topic: Any issues?  (Read 5771 times)

Offline twooly

  • Sr. Member
  • ****
  • Posts: 835
  • Blah
    • Todd Woolums
Re: Any issues?
« Reply #45 on: June 28, 2014, »
You are not allowed to view links. Register or Login
It sounds like the system path has not been set.

+1





Do this in the command prompt

Set Path = %PATH%;"C:\program files\arduino\hardware\tools\avr\etc";"C:\program files\arduino\hardware\tools\avr";"C:\program files\arduino\hardware\tools\avr\bin"

CD "C:\program files\arduino\hardware\tools\avr"

DIR pdmxpv200.hex

.\bin\avrdude -c usbasp -p m328p -b 19200 -U flash:w:pdmxpv200.hex:i -U lock:w:0x0f:m
You are not allowed to view links. Register or Login

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #46 on: June 28, 2014, »
You are not allowed to view links. Register or Login
Try this command from the same directory
.\bin\avrdude -c usbasp -p m328p -v

Post your results.

in which directory?

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #47 on: June 28, 2014, »
twooly,

C:\Program Files\Arduino\hardware\tools\avr>Set Path = %PATH%;"C:\program files\
arduino\hardware\tools\avr\etc";"C:\program files\arduino\hardware\tools\avr";"C
:\program files\arduino\hardware\tools\avr\bin"

C:\Program Files\Arduino\hardware\tools\avr>CD "C:\program files\arduino\hardwar
e\tools\avr"

C:\Program Files\Arduino\hardware\tools\avr>DIR pdmxpv200.hex
 Volume in drive C is Gateway
 Volume Serial Number is C07F-D317

 Directory of C:\Program Files\Arduino\hardware\tools\avr

06/25/2014  09:38 PM            55,068 pdmxpv200.hex
               1 File(s)         55,068 bytes
               0 Dir(s)  103,187,685,376 bytes free

C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>.\bin\avrdude -c usbasp -p m328p -b
19200 -U flash:w:pdmxpv200.hex:i -U lock:w:0x0f:m
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>

Offline TexasStingray

  • Moderator
  • Sr. Member
  • *****
  • Posts: 791
Re: Any issues?
« Reply #48 on: June 28, 2014, »
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login
Try this command from the same directory
.\bin\avrdude -c usbasp -p m328p -v

Post your results.

in which directory?
C:\Program Files\Arduino\hardware\tools\avr
Scott Wanner
TX

Watch my videos
You are not allowed to view links. Register or Login

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #49 on: June 28, 2014, »


C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>.\bin\avrdude -c usbasp -p m328p -v

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, You are not allowed to view links. Register or Login
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is ""
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

C:\Program Files\Arduino\hardware\tools\avr>

Offline TexasStingray

  • Moderator
  • Sr. Member
  • *****
  • Posts: 791
Re: Any issues?
« Reply #50 on: June 28, 2014, »
Ok edit your batch file and add this in after the avrdude and before the -c. Note this one is upper case C. Also be sure to leave a space after avrdude and before the -c. Also this should not be in the " after avrdude.
-C "C:\program files\arduino\hardware\tools\avr\etc\avrdude.conf"


Scott Wanner
TX

Watch my videos
You are not allowed to view links. Register or Login

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #51 on: June 28, 2014, »
I think that did it?

C:\Program Files\Arduino\hardware\tools\avr>"C:\program files\arduino\hardware\t
ools\avr\bin\avrdude" -C "C:\program files\arduino\hardware\tools\avr\etc\avrdud
e.conf" -c usbasp -p m328p -b 19200 -U flash:w:"C:\Program Files\Arduino\hardwar
e\tools\avr\pdmxpv200.hex":i -U lock:w:0x0f:m

avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude: Device signature = 0x1e950f
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: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: reading input file "C:\Program Files\Arduino\hardware\tools\avr\pdmxpv2
00.hex"
avrdude: writing flash (19570 bytes):

Writing | ################################################## | 100% 5.90s



avrdude: 19570 bytes of flash written
avrdude: verifying flash memory against C:\Program Files\Arduino\hardware\tools\
avr\pdmxpv200.hex:
avrdude: load data flash data from input file C:\Program Files\Arduino\hardware\
tools\avr\pdmxpv200.hex:
avrdude: input file C:\Program Files\Arduino\hardware\tools\avr\pdmxpv200.hex co
ntains 19570 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 7.48s



avrdude: verifying ...
avrdude: 19570 bytes of flash verified
avrdude: reading input file "0x0f"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.03s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x0f:
avrdude: load data lock data from input file 0x0f:
avrdude: input file 0x0f contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.03s

avrdude: verifying ...
avrdude: 1 bytes of lock verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.


C:\Program Files\Arduino\hardware\tools\avr>pause
Press any key to continue . . .

Offline TexasStingray

  • Moderator
  • Sr. Member
  • *****
  • Posts: 791
Re: Any issues?
« Reply #52 on: June 28, 2014, »
Yep, that reprogrammed the chip. You'll just have to see if that resolved the 7 flashes issues.
Scott Wanner
TX

Watch my videos
You are not allowed to view links. Register or Login

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #53 on: June 28, 2014, »
Now I have nothing on the pdmxp. No green no red

Offline TexasStingray

  • Moderator
  • Sr. Member
  • *****
  • Posts: 791
Re: Any issues?
« Reply #54 on: June 28, 2014, »
Pull the SD card module out and try again. Make  sure your using the power supply that gave you the 7 flashes. If you still get nothing than watch my video on flashing the leds and see if you can program the panther to flash the leds. If that works than continue on with the video series and see if you can read and write to the SD Card. If you get that far and have success that download the panther hex file again and re flash it panther incase that hex file was bad. For testing you do not have to have the power supply you can run it using your USB port to supply the power, just for testing.
« Last Edit: June 28, 2014, by TexasStingray »
Scott Wanner
TX

Watch my videos
You are not allowed to view links. Register or Login

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #55 on: June 28, 2014, »
Video 1, Panther Programing Part 1 DONE!

Offline TexasStingray

  • Moderator
  • Sr. Member
  • *****
  • Posts: 791
Re: Any issues?
« Reply #56 on: June 28, 2014, »
That's good. At least we know the chip and leds appear to be accepting the firm ware correctly. And that the 2 led pins are working correctly.
Scott Wanner
TX

Watch my videos
You are not allowed to view links. Register or Login

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #57 on: June 28, 2014, »
at the bottom of the Arduino, I do have a warning:

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.

Offline Beanbag109

  • Sr. Member
  • ****
  • Posts: 130
  • "If I bulid it, it will flash and blink"
Re: Any issues?
« Reply #58 on: June 28, 2014, »
oh, you had the same ones on the video

Offline TexasStingray

  • Moderator
  • Sr. Member
  • *****
  • Posts: 791
Re: Any issues?
« Reply #59 on: June 28, 2014, »
Yea, not sure why that happens but everything still work ok. It just a warning.
Scott Wanner
TX

Watch my videos
You are not allowed to view links. Register or Login