| Author |
Message |
|
|
Posted: Jun 20, 2012 - 08:02 AM |
|

Joined: Jun 20, 2012
Posts: 4
|
|
I have built avr-gcc, avrlibc and avrdude for android based tablets and phones. (avrdude requires a rooted device for most programming adapters but the compile tools will run on a non rooted device).
If their is interest Ill package up the files and write some installation instructions.
I may be working on a android app that can program avr's using usbtinyisp for use on tablets running honeycomb+. |
|
|
| |
|
|
|
|
|
Posted: Jun 20, 2012 - 08:47 AM |
|


Joined: Mar 28, 2001
Posts: 20390
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)
|
|
|
Quote:
rooted device
In Australia that means something no longer working or very badly damaged.  |
_________________ John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 10:03 AM |
|

Joined: Jul 18, 2004
Posts: 59
Location: South Africa
|
|
Yes, I would be interrested. I recently got an Android tablet and I am now looking into all the ways it could be usefull in a development engineers life. Re. programming devices, using it as a terminal, usb based instrument like oscilloscope etc.
Regards
Johan |
|
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 10:19 AM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
I recently got an Android tablet
Hope you got an external keyboard for it too - can you imagine trying to type C on any form of tablet? Urrggghh... |
_________________
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 12:18 PM |
|


Joined: Jan 23, 2004
Posts: 9832
Location: Trondheim, Norway
|
|
|
Quote:
Hope you got an external keyboard for it too - can you imagine trying to type C on any form of tablet? Urrggghh...
Actually, I'd LOVE to turn my Touchpad tablet (loaded with latest Android) into a wireless build server - I realize it would be slow, but I only really need it for asynchronous testing. That said, I'd need SVN and AVR32 toolchain too, which is probably impossible to target to Android.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 12:34 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
That said, I'd need SVN and AVR32 toolchain too, which is probably impossible to target to Android.
Eh? Android = pretty face on Linux. Of course you can get SVN and avr32-gcc for Linux. |
_________________
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 12:37 PM |
|


Joined: Jan 23, 2004
Posts: 9832
Location: Trondheim, Norway
|
|
|
Quote:
Android = pretty face on Linux
The kernel is the same, the user-space is (allegedly) quite different. It also depends on what modules are available than the others depend on, for example SVN might require cryptographic libraries that might not have ARM builds.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 12:42 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
The joy of GPL is that you can just pull the sources and build them. And that applies equally to things like libcrypto/libssl or whatever as it does for the thing you want to actually run.
It's true that to build something like firefox or X therefore involves pulling about 50 different complex source trees and building them (either on the target or a cross compiling host) but I've done both and it is "do-able". These days almost everything builds with ./configure, make, make install. The ./configure step will tell you of any dependency you haven't yet got available. You will end up pulling a lot of libdevXXX this way. |
_________________
|
| |
|
|
|
|
|
Posted: Jun 21, 2012 - 05:08 PM |
|

Joined: Oct 29, 2006
Posts: 2655
|
|
|
clawson wrote:
These days almost everything builds with ./configure, make, make install.
I truly hate having to build in the source directory.
When something goes wrong, I'd like to be able to clean up the mess by just blowing away a build directory.
Admittedly a lot of them will build in a separate directory,
but few of them say so in the documentation.
IIRC that includes bingo's avr-gcc scripts.
make clean cannot be known to be good enough after something else has already gone wrong. |
_________________ Michael Hennebry
Iluvatar is the better part of Valar.
|
| |
|
|
|
|
|
Posted: Jun 22, 2012 - 08:02 AM |
|

Joined: Jun 20, 2012
Posts: 4
|
|
Sorry for not responding sooner, dont seem to be getting notifications by email of posts ill put something up this weekend and it'll include make as well. Ive typed quite a bit of code on a tablet no probs, in fact since getting the tablet I've hardly used my computer at home  |
|
|
| |
|
|
|
|
|
Posted: Jun 22, 2012 - 02:38 PM |
|


Joined: Nov 11, 2003
Posts: 3899
Location: Chicago Illinois USA
|
|
| The only android I have is the phone, but I do find it's very handy for some things. Not sure I'd try writing programs on it, though maybe if I plugged a monitor into the hdmi port and a keyboard and mouse to the usb? My netbook sometimes feels a little forgotten. |
_________________ Discursive design,
Torby
Some days, it's just not worth chewing through the restraints.
|
| |
|
|
|
|
|
Posted: Jun 22, 2012 - 02:48 PM |
|


Joined: Jan 23, 2004
Posts: 9832
Location: Trondheim, Norway
|
|
|
Quote:
My netbook sometimes feels a little forgotten.
After I relealized I had a tablet, decent laptop and a netbook last year I actually gave the latter away, since even I thought it was a bit much. I'm now kicking myself a little since it would have made for a handy build server and unit test machine, but I suppose it's better someone else who couldn't afford a laptop used it.
That said, I'd still want to turn the tablet into a build server if I could...
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Jun 22, 2012 - 03:29 PM |
|


Joined: Nov 11, 2003
Posts: 3899
Location: Chicago Illinois USA
|
|
| I use my netbook for writing, webbing, programming AVR's, and rendering 3d images. http://www.improbable.me It's no "rendering engine" but it keeps me into mischief. |
_________________ Discursive design,
Torby
Some days, it's just not worth chewing through the restraints.
|
| |
|
|
|
|
|
Posted: Jun 23, 2012 - 02:37 PM |
|

Joined: Jun 20, 2012
Posts: 4
|
|
|
|
|
|
|
Posted: Jun 23, 2012 - 11:08 PM |
|

Joined: Jun 20, 2012
Posts: 4
|
|
| some of the files appear to uploaded corrupt on google code reloading now. |
|
|
| |
|
|
|
|
|
Posted: Jun 24, 2012 - 12:40 PM |
|

Joined: Jul 18, 2004
Posts: 59
Location: South Africa
|
|
| I don't think I would grab my tablet for programming or PCB layout soon, even using a bluetooth or usb keyboard. I use two 22inch screens connected to my laptop with some horsepower for that. But for lab bench or in the field work like programming embedded system, do a small bug fix and compiling, running a terminal or the display of some usb connected intrument, I am all in. Just need to find some time to explore these options. |
|
|
| |
|
|
|
|
|
Posted: Jun 30, 2012 - 10:16 PM |
|

Joined: Apr 12, 2005
Posts: 341
Location: Jõhvi, Estonia
|
|
Can you think of a better excuse for rooting the Asus Transformer I am using right now (other than for running avr-gcc)?
Truly wonderful!
(no pun intended). |
|
|
| |
|
|
|
|
|
Posted: Aug 27, 2012 - 11:29 AM |
|

Joined: Oct 16, 2010
Posts: 4
|
|
|
gibbonsmartin wrote:
Heres the files check readme.txt for installation instructions.
http://code.google.com/p/andavr/
That is pure awesome!!! Loved it.
But I'm facing problem while using avrdude. How do I set the port no.? I followed your readme to the word.
I'm using arduinoISP programmer connected via usb on-the-go cable. And my phone isn't rooted. When I'm omitting -P, I'm getting this error:
app_207@android:/sdcard/avr/blinky $ avrdude -C /data/data/jackpal.androidterm/local/etc/avrdude.conf -p attiny2313 -c avrisp -b 19200 -U flash:w:blinky.hex
avrdude: ser_open(): can't open device "/dev/ttyS0": Permission denied
avrdude done. Thank you. |
|
|
| |
|
|
|
|
|
Posted: Aug 27, 2012 - 11:58 AM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| Can't you use sudo? |
_________________
|
| |
|
|
|
|
|
Posted: Aug 27, 2012 - 12:33 PM |
|


Joined: Jan 08, 2009
Posts: 1160
Location: Lund, Sweden
|
|
| I don't know what hardware you're running this on (more than it's a phone), but /dev/ttyS0 is usually attached to a old style serial port with DB9 connector and RS232 levels. That doesn't sound like android to me. If you are using a usb to serial converter they usually come up as /dev/ttyUSB0 or /dev/ttyACM0 (on "ordinary" Linux systems). If it is the later case use -P /dev/ttyACM0 as argument to avrdude. |
|
|
| |
|
|
|
|
|
Posted: Aug 28, 2012 - 12:58 PM |
|

Joined: Oct 16, 2010
Posts: 4
|
|
|
clawson wrote:
Can't you use sudo?
I haven't really used linux before. When I try 'sudo' or 'sudo avrdude', I get this error:
/system/bin/sh: sudo: not found
Quote:
I don't know what hardware you're running this on
I'm running this on Samsung S3 using an app called Terminal Emulator.
Quote:
If you are using a usb to serial converter they usually come up as /dev/ttyUSB0 or /dev/ttyACM0
As mentioned above, I'm using ArduinoISP which converts arduino into ISP programmer. The arduino is connected to phone through USB. Under /dev, I have tty0-tty63, ttyGS0-3, ttyS0-3 and ttySAC0-3. They all give permission denied when used with -P(might mean I have root? ).
Isn't there any way to find out which port a device is connected to? |
|
|
| |
|
|
|
|
|
Posted: Aug 29, 2012 - 05:32 AM |
|

Joined: Mar 21, 2009
Posts: 111
Location: Mexico
|
|
That would be excelent compiling on my galaxy note ore writting code on the go  |
_________________ Entra a www.mecatronicamexicana.blogspot.com y ve lo que los estudiantes Mexicanos de Mecatronica hacen y conoce un poco más acerca de Mecatronica
|
| |
|
|
|
|
|
Posted: Oct 23, 2012 - 10:32 AM |
|

Joined: Dec 09, 2010
Posts: 154
Location: BW, Germany
|
|
Is the version on Google still the up to date one? I will get my first tablet next week and can't wait to try it out  |
|
|
| |
|
|
|
|
|
Posted: Dec 05, 2012 - 12:29 AM |
|

Joined: Dec 05, 2012
Posts: 3
|
|
Hi I'm new here. I was searching the web for an android programming software for the arduino uno and I found this thread. From reading so far, this seems like what I need. I followed the OP's instructions and installed all the necessaries. I am fairly ok with Atmel C programming but I know nothing about UNIX.
Can someone give me a little push in the right direction as to how to send a sketch to my Arduino Uno board? I am using a Galaxy Note as the USB Host device. |
|
|
| |
|
|
|
|
|
Posted: Dec 05, 2012 - 01:44 PM |
|

Joined: Dec 05, 2012
Posts: 3
|
|
|
|
|
|
|
Posted: Dec 06, 2012 - 04:38 AM |
|


Joined: Jan 23, 2004
Posts: 9832
Location: Trondheim, Norway
|
|
You will need an Android build of the software called "avrdude" before you can use the Arduino bootloader to upload a new HEX file.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Dec 06, 2012 - 12:24 PM |
|

Joined: Dec 05, 2012
Posts: 3
|
|
Yes, I have installed the android build avrdude from the link posted above on my phone. I followed the instruction above from the readme file. I have gotten as far as trying to send a test file but I get an error from avrdude saying:
ser_open(): can't open device "unkown". No such file or directory.
Any ideas? |
|
|
| |
|
|
|
|
|
Posted: May 06, 2013 - 01:41 PM |
|

Joined: Apr 09, 2013
Posts: 1
|
|
ser_open(): can't open device "unkown". No such file or directory.
Anyone know how to use the avrdude on Android? |
|
|
| |
|
|
|
|
|
Posted: May 06, 2013 - 02:40 PM |
|

Joined: Dec 30, 2004
Posts: 8788
Location: Melbourne,Australia
|
|
| Many if the kernel builds for Android do not support usb->serial adapters natively. Some people have compiled kernels with support or do the support in userland code which is fine if you are writing a terminal program. |
|
|
| |
|
|
|
|
|
Posted: May 06, 2013 - 02:43 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
Maybe try:
Code:
cat /proc/tty/drivers
to find the device name?
On my tablet
Code:
u0_a113@android:/ $ cat /proc/tty/drivers
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
rfcomm /dev/rfcomm 216 0-255 serial
g_serial /dev/ttyGS 251 0-3 serial
usbserial /dev/ttyUSB 188 0-253 serial
s3c2410_serial /dev/ttySAC 204 64-67 serial
serial /dev/ttyS 4 64-67 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console
u0_a113@android:/ $
|
_________________
|
| |
|
|
|
|
|