PDA

View Full Version : Atmel AVR programming



Media Boot
July 29th, 2012, 01:19 PM
I have two ( for now ) questions:



does Ubuntu support AVRISP mkII ( saw a few quite old threads stating it is a nightmare to get it up and running ) ?



what is the best ( in terms of functionality ) replacement for AVR Studio ?

DarkAmbient
July 30th, 2012, 11:04 AM
For question #1, a quick search gave me this, it's old but should still be valid.

http://steve.kargs.net/bacnet/avr-isp-mkii-on-ubuntu-hardy/

MicahCarrick
August 12th, 2012, 05:46 AM
You are not going to find a replacement for AVR Studio. Like many things in Linux, multiple projects comprise the functionality you would often find in many Windows all-in-one applications.

Most folks write their code in C (with the help of avr-libc) using their favorite text editor or IDE (I use Gedit, the default text editor), compile that code with `avr-gcc`, debug and simulate it with `avr-gdb` and `simulavr`, and program it to the chip with `avrdude`. All of these packages are available in the repos (I think avr-gcc is in there as gcc-avr). This is the same as WinAVR on Windows.

Makefiles are typically used to manage complex AVR projects.

the_unforgiven
August 13th, 2012, 05:53 AM
You may want to take a look at the Wiring (http://en.wikipedia.org/wiki/Wiring_(development_platform)) development platform.

studyembedded
February 24th, 2013, 01:18 PM
Hi Guys new to this forum, i wonder if there is an development environment for AVR on UBUNTU platform. If there is one, please suggest me. In case if this is a wrong place to ask this question, please guide me to right forum....thanks!

larytet
March 19th, 2013, 05:31 PM
Just in case if anybody works with Olimex
Ubuntu 12.04 you need only avrdude
and you do something like this

avrdude -V -p m64 -c stk500v2 -P /dev/ttyACM0 -U ~/mbvideo/icard/mk/icard.prog.hex -v
# Fuse bytes shall be programmed only once on the new card. Be careful about actual values for FUSE. It is better no to touch them at all
# avrdude -V -p m64 -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xFF:m -v
# avrdude -V -p m64 -c stk500v2 -P /dev/ttyACM0 -U hfuse:w:0xD8:m -v
# avrdude -V -p m64 -c stk500v2 -P /dev/ttyACM0 -U efuse:w:0xFF:m -v
In Windows


Install driver https://www.olimex.com/Products/AVR/Programmers/AVR-ISP500/
Install WinAVR http://www.ladyada.net/learn/avr/setup-win.html
Command
avrdude -V -p m64 -c stk500v2 -P COM112 -U ecard.prog.hex

slickymaster
March 19th, 2013, 05:40 PM
Hi Guys new to this forum, i wonder if there is an development environment for AVR on UBUNTU platform. If there is one, please suggest me. In case if this is a wrong place to ask this question, please guide me to right forum....thanks!

AVR Setup (http://www.ladyada.net/learn/avr/setup-unix.html)