Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Bingo600
PostPosted: Jan 06, 2010 - 04:04 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

I use this (Ubuntu) :


Code:


Development .....

Toolchain   : Build your own
              See http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631

Toolchain   : As Ubuntu/Debian .deb install package
              See http://www.wrightflyer.co.uk/avr-gcc/

Makefile Gen: Jörgs mfile tcl script , adapted to Ubuntu.
              http://www.wrightflyer.co.uk/avr-gcc/mfile-ubuntu.tar.gz

IDE         : CodeBlocks (I don't use avr plugin , but external makefiles , ymmv)
              See http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=64023
Programmer  : AVRdude
Assembler   : avrasm2.exe , runs fine under wine
AVR Fuses   : http://www.engbedded.com/fusecalc/
AVR Calc    : I mostly use the standard avrcalc V2.11 (windows exe) ,
              it runs fine under wine (windows emulator)
kavrcalc    : http://www.b9.com/elect/avr/kavrcalc/index.html ,
              requires motiff or lesstiff installed. No cource available.       
Versioning  : SVN
Vers GUI    : RapidSVN
Diff viewer : Meld (also used by RapidSVN)
Hex Editor  : Bless
Hex Calc    : Standard calculator (scientific view)
Terminal    : Putty (Can also do Serial) , some prefer minicom.

Arm Development .... Mostly the same as above.

Toolchain   : Codesourcery Arm Lite - EABI
              http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite
Debugger    : ARM GDB/Insight easy to build from source.
              This is due to CS above doesn't include it in
              their "lite" version.
   
Misc .....

Ftp         : Filezilla
IM          : Pidgin
NNTP(News)  : Pan  (news.gmane.org)
CHM viewer  : KchmViewer (best) or xCHM (smallest)
Mail        : Thunderbird , as i find evolution to heavy.
Filemanager : I mostly use the build in , but have Krusader installed.
              I also have MC (midnight commander)  installed,
              it can be handy if you end up in a commandprompt only.

Servers/daemons ....

DNS         : Bind9
SSH         : OpenSSH
Timesync    : NTP (ntpd)
Web         : Apache
Ftp         : Proftpd
Mail        : Sendmail , this is NOT for the faint hearted
POP3/IMAP   : Dovecot
Versioning  : SVN
Fileshare   : NFS & Samba
Firewall    : I ufw (ubuntu firewall) on clients (think it's default off).
              And a "nasty" "iptables" , script on servers. Due to changes in the rules by scripting.
              I'd recommend fwbuilder (Checkpoint firewall-1 lookalike)
              Or the simpler firestarter , if you dont need to change the firewall rules by scripting.

              A lot of people seems happy with shorewall  witch has super documentation ,
              and some nice features

If i had a "Supermachine" w. 2GB+ ram i would prob. have installed Virtualbox , people here are really happy with it.



This is the contents of my avrasm2 executable shellscript , located in my ~/bin. I have copied the full AvrAssembler2 directory from a windows pc , w. AvrStudio installed.

Quote:

#!/bin/bash
wine ~/avr/AvrAssembler2/avrasm2.exe -I ~/avr/AvrAssembler2/Appnotes -fI $1 $2 $3 $4 $5


Note ...
"~/" is a synonym for your login users home directory.


Code::Blocks Intro - from a fellow freak (ekh)
http://www.avrfreaks.net/index.php?name ... highlight=

AvrStudio under wine (but no Atmel USB devices functioning) maybe stk-500 is ok (serial)
http://www.avrfreaks.net/index.php?name ... p;start=43

Wine & COM1 (For stk-500 in Studio)
http://www.avrfreaks.net/index.php?name ... 393#669393

Upgrading Atmel USB tools under Linux (JtagMKII , ISP-MKII , Dragon etc).
Can be done with AVr32Studio (A big package , but makes it possible).
http://www.avrfreaks.net/index.php?name ... 522#710522


Atmels AVR Studio Help , but as html
http://support.atmel.no/bin/customer?=&inc=help


For Schematic/PCB i know several that uses Kicad
http://www.lis.inpg.fr/realise_au_lis/kicad/

I just tried Eagle for Linux (Free edition)
Works like a charm
http://www.cadsoftusa.com/downloads/


For Simulation - I just started to use LTspice.
You have to register with LT to get it.
http://www.linear.com/designtools/software/
It works fine in wine , install with : wine LTspiceIV.exe
I found a nice tutorial here.
http://www.elektronikschule.de/~krausg/ ... /pdf-File/


For Partitioning / Cloning & Rescuing
http://partedmagic.com/

Some programs require VB6-Runtime
Get it from here and install with : wine <filename>
http://support.microsoft.com/kb/290887
I did specify c:\windows as installpath

Quote:
I also use this "PDF Toolkit" in Ubuntu (apt-get install pdftk) ..
Note... It's commandline only , but powerfull.
I just extracted page 48 to 52 from a large pdf with this command : pdftk infile.pdf cat 48-52 output outfile.pdf.

I didn't succeed in building it from source , as the source is incompatible with the current GCC Javacompiler ,
but someone at Ubuntu has made the current version as a package ..

Homepage
http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
Examples
http://www.pdflabs.com/docs/pdftk-cli-examples/


If you ever need to build Codesourcery Lite from source , have a look here
https://github.com/jsnyder/arm-eabi-toolchain
I just build it for my x64 machine.



At: Nov-2012 i have begun to use this repos for CB on ubuntu 10.04


Code:
#
# https://launchpad.net/~pasgui/+archive/ppa/
#
deb http://ppa.launchpad.net/pasgui/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/pasgui/ppa/ubuntu lucid main




/Bingo


Last edited by Bingo600 on Jan 30, 2013 - 06:37 AM; edited 25 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jun 07, 2010 - 10:20 AM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

Feel free to add links/hints to other tools.
But please let them be related to embedded programming

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
jnd-cz
PostPosted: Jul 14, 2010 - 01:09 PM
Rookie


Joined: Mar 09, 2008
Posts: 24
Location: Praha, Czech Republic

Why do you need exe assembler when there are three (soon to be four) free or freeware ones which can be run natively in Linux?

1) avra, often packaged in distributions http://avra.sourceforge.net/
2) tavrasm, domain tavrasm.org seems to be expired, either there is new site somewhere or you can google and download the code from various sites, I don't remember where I got it from last time
3) gavrasm, http://www.avr-asm-tutorial.net/gavrasm/index_en.html
4) SB-Assembler, v 3.0 in the making with many architectures supported http://www.sbprojects.com/sbasm/news.htm

For editor/IDE I use Geany (mostly packaged, http://geany.org/). You can configure it for one-key assembly/compile/make and avrdude upload too. I could post somewhere syntax highlighting file for AVR asm.

_________________
jnd

ASM programmer
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jul 14, 2010 - 01:18 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71119
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

there are three (soon to be four) free

avr-as was noticeably absent from your list. I can't imagine why anyone bothers to write others when it exists - how can you get better than "gas"?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
JohnWalton
PostPosted: Jul 20, 2010 - 08:13 AM
Hangaround


Joined: Jan 11, 2009
Posts: 210
Location: Stockholm Sweden

For installation I prefer to follow the instructions on the avr-libc web site.

http://avr-libc.nongnu.org/user-manual/install_tools.html#install_avr_gcc

But I include any patches available.

For an IDE I use gnu/emacs.
Works fine with or without Xorg.
I dont know of anything I want to do
that I can not do with gnu/emacs.

The other package that I use a lot and highly
recommend is GEDA.

http://www.gpleda.org/index.html


For circuit diagrams and board layout.

John

_________________
If all else fails, read the instructions.
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jul 20, 2010 - 05:51 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

jnd-cz wrote:
Why do you need exe assembler when there are three (soon to be four) free or freeware ones which can be run natively in Linux?


Well i often need to assemble avrasm2 sources , and it's "dual homed" with the help of wine.

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
jnd-cz
PostPosted: Jul 23, 2010 - 12:55 PM
Rookie


Joined: Mar 09, 2008
Posts: 24
Location: Praha, Czech Republic

clawson wrote:
Quote:

there are three (soon to be four) free

avr-as was noticeably absent from your list. I can't imagine why anyone bothers to write others when it exists - how can you get better than "gas"?

Ok I forgot to count it but I didn't list it because it's part of binutils which was listed under toolchain.

Better in what? Does it support all the features of Atmel's assembler and it's syntax? Or is it even better than the original? Last time I checked it wasn't that good. If gas is the best assembler then why is nasm so popular?

I rather use one specialized app which works well (in spirit of *nix tools) and it is compatible with avrasm. That's also why I questioned the use of avrasm with wine, which is also slower, when you can use native assembler. Maybe it's the habit or familiarity but no reason has been given yet.

_________________
jnd

ASM programmer
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
saperski
PostPosted: Aug 25, 2010 - 09:07 PM
Newbie


Joined: Aug 25, 2010
Posts: 3
Location: Frankfurt am Main

I think the problem with avr-as is that it is designed to be used primarily with gcc as a frontend, so for example its diagnostic messages are terse. It is also not quite compatible with avrasm2 (a feature that many need to hack existing projects).

_________________
saper
 
 View user's profile Send private message  
Reply with quote Back to top
saperski
PostPosted: Aug 25, 2010 - 09:14 PM
Newbie


Joined: Aug 25, 2010
Posts: 3
Location: Frankfurt am Main

Bingo600 wrote:

Well i often need to assemble avrasm2 sources , and it's "dual homed" with the help of wine.


I'd like to work on avra to make it a bit more avrasm2 compatible. Are you having some particular, real-life problems when trying to run avrasm2 code through avra? Can you give it a try?

_________________
saper
 
 View user's profile Send private message  
Reply with quote Back to top
backman
PostPosted: Aug 31, 2010 - 08:02 PM
Newbie


Joined: Aug 30, 2010
Posts: 10


jnd-cz wrote:
Why do you need exe assembler when there are three (soon to be four) free or freeware ones which can be run natively in Linux?

1) avra....
2) tavrasm......
3) gavrasm....
4) SB-Assembler, v 3.0......


Hi,
Could you please be more specific wich assembler is the best? I have problem with avra (some m16def.inc) and I don't know the others. I am a newbie and I need some help hpw to make a hex file from asm in Linux.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Aug 31, 2010 - 08:17 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71119
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I am a newbie and I need some help hpw to make a hex file from asm in Linux.

Have you considered avr-as (the GNU assembler for AVR)? Or are you trying to port some existing Atmel assembler code?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Aug 31, 2010 - 08:28 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 21982
Location: Lund, Sweden

Quote:

Could you please be more specific wich assembler is the best?

You will most likely not get any meaningful answer to such a question.

If you are more specific in your question (eg stating requirements, what knowledge you have already, things you liked and disliked in other assemblers you've used etc) then you stand a better chance of getting something out of the AVRfreaks motley crew.

I'll give you this, though (based on my personal observations, which might be skewed):

The most spoken about compiler here is Atmels AVR Assembler, but that does not apply to you since it is for MS Windoze.

Next comes avr-as, a part of the GNU tool chain.

Then comes nothing. And then comes avra.

The reast of the assemblers mentioned in the list above are seldomly mentioned, if ever.

All this might mean something to you if you hope to rely on AVRfreaks for help with problems specific to the tool chain you eventually will choose.

Quote:

I have problem with avra (some m16def.inc)

This suggests that you have some code already that you picked up somewhere, since the m16def.inc is a file that comes with Atmels Assembler. If you tell us what you have, and be specific rather than "have problem", you're more likely to get help. Since this thread is a general guide to GNU/Linux tools for AVR, and this last question is a more specific one I suggest you start a separate thread about that - and don't forget to think out a meaningful title for it.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Bingo600
PostPosted: Sep 28, 2010 - 11:17 AM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

saperski wrote:
Bingo600 wrote:

Well i often need to assemble avrasm2 sources , and it's "dual homed" with the help of wine.


I'd like to work on avra to make it a bit more avrasm2 compatible. Are you having some particular, real-life problems when trying to run avrasm2 code through avra? Can you give it a try?


Sorry for the long delay ....


I haven't tried avra yet , but first discovered the avrasm2 need , when trying to build danni's bootloader.
And as "Wine" was my friend i kind of settled there.

Your location tells me that you should be able to read the below thread.
http://www.mikrocontroller.net/topic/146638#new

Get 2.1 from here , and see if avra can do it Smile
http://www.avrfreaks.net/index.php?modu ... pe=project


/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Astonix
PostPosted: Mar 17, 2011 - 08:04 AM
Newbie


Joined: Mar 13, 2007
Posts: 3
Location: Jakarta, ID

Hi,
There is some of native GNU/Linux tools for AVR Development :
- GCC: The Gnu Compiler Collection, configured and compiled for AVR targets http://gcc.gnu.org/
- The BinUtils package, also with AVR specific options enabled http://www.gnu.org/directory/binutils.html
- The AVR LibC C library http://www.nongnu.org/avr-libc/

If you have an RPM based distribution and would like to save some compile time, locate and install these RPMs:

-avr-binutils-2.14-1
-avr-gcc-3.3.2-1
-avr-gdb-6.0-1
-avr-libc-1.0.2-1

Rgds,
Aston
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Bingo600
PostPosted: Mar 19, 2011 - 05:01 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

Astonix wrote:
Hi,
There is some of native GNU/Linux tools for AVR Development :
- GCC: The Gnu Compiler Collection, configured and compiled for AVR targets http://gcc.gnu.org/
- The BinUtils package, also with AVR specific options enabled http://www.gnu.org/directory/binutils.html
- The AVR LibC C library http://www.nongnu.org/avr-libc/

If you have an RPM based distribution and would like to save some compile time, locate and install these RPMs:

-avr-binutils-2.14-1
-avr-gcc-3.3.2-1
-avr-gdb-6.0-1
-avr-libc-1.0.2-1

Rgds,
Aston


Why on earth are you recommending this old stuff

Are you Jekson on a new ID ?
Just trying to increase your post count

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
mvdw
PostPosted: Apr 13, 2011 - 03:01 AM
Newbie


Joined: Nov 20, 2003
Posts: 8


jnd-cz wrote:


For editor/IDE I use Geany (mostly packaged, http://geany.org/). You can configure it for one-key assembly/compile/make and avrdude upload too. I could post somewhere syntax highlighting file for AVR asm.


+1 Geany. Works under windows too (I have to run win at work, so my windows desktop is littered with cygwin terminals + geany editor).
 
 View user's profile Send private message  
Reply with quote Back to top
Astonix
PostPosted: Apr 13, 2011 - 09:52 AM
Newbie


Joined: Mar 13, 2007
Posts: 3
Location: Jakarta, ID

Bingo600 wrote:


Why on earth are you recommending this old stuff

Are you Jekson on a new ID ?
Just trying to increase your post count

/Bingo


sorry if my advice is not updated with current technology. I'm just a newbie who wants to try to discuss, that's all.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Bingo600
PostPosted: Feb 12, 2013 - 04:20 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

Neat Gimp batchconvert script (ie. resize those giant jpegs for web use)

http://members.ozemail.com.au/~hodsond/dbp.html

Get this one
http://www.ozemail.com.au/~hodsond/dbpSrc-1-1-9.tgz

1: Extract files ...
2: Shell .. cd "extract dir"
3: sudo apt-get install libgimp2.0-dev
4: make
5: make install

6: Open Gimp -> Filters -> BatchProcess ....

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Feb 12, 2013 - 08:29 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3930
Location: Denmark

Codeblocks 12.x for Ubuntu 12.10 or Mint-14.1

Into /etc/apt/sources.list

#
# http://lgp203.free.fr/ubuntu/
#
deb http://lgp203.free.fr/ubuntu quantal universe
deb-src http://lgp203.free.fr/ubuntu quantal universe


apt-get update (get keyring)

apt-get install pasgui-ubuntu-keyring

apt-get update (reread with key installed)

Install CodeBlocks (I use synaptic)

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
matiasdelellis
PostPosted: Feb 19, 2013 - 10:19 PM
Newbie


Joined: Nov 02, 2011
Posts: 1


Hi,
Test i4uc http://i4uc.sourceforge.net/

This project is relatively new, but it works great!.

Regards,
Matias.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits