Luisangonzalez / andavr

Automatically exported from code.google.com/p/andavr
5 stars 0 forks source link

AVRdude problem #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I run this line avrdude -p atmega1280 -c stk200 -P lpt1 -U 
flash:w:demo.bin:r (I find in 
http://www.siphec.com/HOWTO/AVR%20WinAVR%20avr-gcc/index.html)
2.
3.

What is the expected output? What do you see instead?
the terminal show me: avrdude: can't open config file 
"/usr/local/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file 
"/usr/local/etc/avrdude.conf"

What version of the product are you using? On what operating system?
Android 4.1.2
Please provide any additional information below.

Original issue reported on code.google.com by josemigu...@upp.edu.mx on 30 Jan 2013 at 4:31

GoogleCodeExporter commented 8 years ago
Well the following worked for me.And I guess it should be the same case with 
you.Make sure that you are in the folder in which your avrdude has been copied, 
when you sun the code(cd /sdcard in my case)

1.Genrating hex file from rooted android tablet:

open Better Teminal app

su
export PATH= $PATH:/data/data/jackpal.androidterm/local/bin 
cd /sdcard

avrdude -p m32 -c avrispmkII -P usb -C /path/to/avrdude.conf -U flash.hex

Happy coding :)

Original comment by ashwinn...@gmail.com on 20 Feb 2013 at 12:17

GoogleCodeExporter commented 8 years ago
http://www.nongnu.org/avr-libc/user-manual/group__demo__project.html  may be 
this will help you.

Original comment by ashwinn...@gmail.com on 20 Feb 2013 at 12:20

GoogleCodeExporter commented 8 years ago
HI!
Thanks for answer me, but I have a other cuestion. How do you find the
serial port in android? I have a Arduino Mega 2560 and I want to upload the
.hex but I can't to access to /dev/bus/usb/002 , and I use Code in java to
upload, all the instrucions are perfect except the serial port.

I have a Samsumg Galaxy s2 with ROOT access.

best regards.

Original comment by josemigu...@upp.edu.mx on 22 Feb 2013 at 8:23

GoogleCodeExporter commented 8 years ago
If you are root, simply create /usr/local/etc/ and copy avrdude.conf from 
/data/data/jackpal.androidterm/local/bin

That worked for me. I think an simbolic link (ln -s) will work too instead of cp

Original comment by bademeis...@gmail.com on 12 Apr 2013 at 9:43

GoogleCodeExporter commented 8 years ago
Ok, thanks for answer me, but can you tell me how create a serial to
download the .hex? A example please?
Best regards!
El abr 12, 2013 4:43 PM, <andavr@googlecode.com> escribi�:

Original comment by josemigu...@upp.edu.mx on 12 Apr 2013 at 9:55

GoogleCodeExporter commented 8 years ago
Recently i am try to using Avrdude(andavr) to upload hex file to arduino 
uno.But i don't konw andorid usb device name. I used 
"dev/bus/usb/002/002".System show error- 
avrdude: ser_open(): can't set attriutes for device “/devs/usb/002/002"
 Can you give me some guide? thanks!

Original comment by sunkeshi...@gmail.com on 12 Oct 2013 at 1:36

GoogleCodeExporter commented 8 years ago
For me it shows usbtiny not found. How to write the /dev/USB command in 
avrdude? Please help

Original comment by santan...@gmail.com on 12 Nov 2013 at 5:35

GoogleCodeExporter commented 8 years ago
Hi,
How can we do this in a non rooted device

Original comment by touazi.i...@gmail.com on 17 Jan 2014 at 1:47