[Linux][Tools] Suggested tools for AVR use under Linux

20 posts / 0 new
Last post
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use this (Ubuntu) :


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=PNphpBB2&file=viewtopic&t=64023&start=0&postdays=0&postorder=asc&highlight=

AvrStudio under wine (but no Atmel USB devices functioning) maybe stk-500 is ok (serial)
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=41478&postdays=0&postorder=asc&start=43

Wine & COM1 (For stk-500 in Studio)
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=669393#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=PNphpBB2&file=viewtopic&p=710522#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/LTSwitcherCAD/SwitcherCAD-Tutorial_English/pdf-File/

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

Some programs require VB6-Runtime
Get it from here and install with : wine
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

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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"?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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?

 

Pages