AVR compilers

Started by mc in comp.arch.embedded13 years ago 62 replies

OK, another deep theological question... What do people think of each of these...? CodeVision C for AVR ImageCraft C for AVR IAR C for...

OK, another deep theological question... What do people think of each of these...? CodeVision C for AVR ImageCraft C for AVR IAR C for AVR gcc for AVR BASCOM for AVR Any of them notoriously good or notoriously bad? Integration with AVR Studio and STK500 are desirable.


Which AVR Studio and C compiler for AVR 8-bit microcontroller and JTAGICE?

Started by pozz in comp.arch.embedded4 years ago 5 replies

I see there are three AVR Studio versions: 4, 5 and 6. Which one to use? I don't understand if a free C compiler is present in all of...

I see there are three AVR Studio versions: 4, 5 and 6. Which one to use? I don't understand if a free C compiler is present in all of those versions or only for AVR Studio 6. Anyway I see there is a AVR 8-bit toolchain for Windows: could it be used in AVR Studio 4 too? I have an old JTAGICE debugger clone with RS232 interface only. I think only AVR Studio 4 supports this old debugger. Is...


Atmel AVR assembler

Started by Herbert Kleebauer in comp.arch.embedded12 years ago 77 replies

Have to write some AVR code and therefore have read the AVR Instruction Set manual and tried the assembler included in AVR studio. I think the...

Have to write some AVR code and therefore have read the AVR Instruction Set manual and tried the assembler included in AVR studio. I think the used syntax is completely unusable, so I decided to write my own assembler. A very first version can be downloaded from: ftp://137.193.64.130/pub/assembler/adela.zip Maybe there are some AVR experts who can give some suggestions for an improve...


AVR-GCC options

Started by rvarshney in comp.arch.embedded8 years ago 3 replies

Hello, I was hoping to know if there is a way to intermix source code with the output of "avr-gcc -S" I know that it is possible to do so with...

Hello, I was hoping to know if there is a way to intermix source code with the output of "avr-gcc -S" I know that it is possible to do so with "avr-objdump -S", but I was wondering if there is a way to get the same functionality with "avr-gcc -S" Thanks!


AVR studio4 problem

Started by Martin Griffith in comp.arch.embedded9 years ago 1 reply

I'm trying to move Studio4/GCC/winavr from my aging laptop to my desk PC I downloaded the latest versions for the PC but get the...

I'm trying to move Studio4/GCC/winavr from my aging laptop to my desk PC I downloaded the latest versions for the PC but get the following error Loaded plugin STK500 Loaded plugin AVR GCC Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\ATmega128 AVR Simulator: Please wait while configuring simulator... AVR Simulator: ATmega128 Configured OK AVR Simulator: Inval...


AVR s/w emulator ?

Started by A. Drosos in comp.arch.embedded12 years ago 1 reply

Hi, Is it possible to use the AVR s/w emulator on AVRStudio running on a PC and somehow get external control signals (serial or parallel port)...

Hi, Is it possible to use the AVR s/w emulator on AVRStudio running on a PC and somehow get external control signals (serial or parallel port) that would correspond to signals produced by an actual AVR? The reason I'm asking is that I have to design a small scale electromechanical elevator model that would be controlled by a microcontroller together with PLC units and the AVR was sugg...


AVR Silly Interrupt problem

Started by ja.....@.mail.com in comp.arch.embedded11 years ago 17 replies

I have timer0 set to overflow and generate an interrupt, but for whatever reason AVR Studio doesnt seem to be doing what the ISR is supposed to...

I have timer0 set to overflow and generate an interrupt, but for whatever reason AVR Studio doesnt seem to be doing what the ISR is supposed to be doing! I'm attaching the code here, can you find something that I'm missing!? Is this a problem with the simulation in AVR Studio or with the code itself? I haven't tested it on a device yet. #include #include


AVR or PIC for a beginner

Started by [Frank] in comp.arch.embedded10 years ago 20 replies

I'm new to microcontrollers world. I have only a little experience with Z80 based systems. I saw some Atmel AVR's sources and I loved it:...

I'm new to microcontrollers world. I have only a little experience with Z80 based systems. I saw some Atmel AVR's sources and I loved it: very clear. Someone suggest me to start with PIC, someone else with AVR. The net is full of doc/projects about PIC and give me a bit of confusione; AVR much less...instead. What do you think about? What's the best approach for a beginner? Than...


AVR with Parallel Flash Memory

Started by NMMX in comp.arch.embedded7 years ago 12 replies

Hi all, I have a few questions on how to go about generate the correct waveforms for reading/writing from/to an external flash memory using an...

Hi all, I have a few questions on how to go about generate the correct waveforms for reading/writing from/to an external flash memory using an AVR microcontroller. The AVR has enough I/O to allow direct connection between address, data and control lines. I don't have to worry about counters/latches etc. The AVR is using a 12MHz clock. How do you work out how long each cycle will take? ...


AVR, Max OS X: Compiling avr-libc fails ...

Started by Frank Goenninger DG1SBG in comp.arch.embedded11 years ago 5 replies

Hi all: I tried to compile avr-libc on my Mac Intel with OS X 10.4.6 using the instructions as detailed in...

Hi all: I tried to compile avr-libc on my Mac Intel with OS X 10.4.6 using the instructions as detailed in http://www.nongnu.org/avr-libc/user-manual/install_tools.html Unfortunately the compile fails: avr-gcc -I../../../../common -I../../../../include -x assembler-with-cpp -Wa,-gstabs -mmcu=at90s1200 -c ../../../../crt1/gcrt1.S /usr/libexec/gcc/darwin/i386/as: Flag option -m has...


avr butterfly and jtag

Started by Mark Andrew in comp.arch.embedded13 years ago 2 replies

I have bought an AVR Butterfly as my first step in exploring the wonderful world of microcontrollers, and have worked out how to compile and...

I have bought an AVR Butterfly as my first step in exploring the wonderful world of microcontrollers, and have worked out how to compile and load programs into it using WinAVR, AVR Studio and the RS232 connection. And all for ? 30! Now I want to try my hand at on board debugging. Do I just buy the JTAG dongle for ? 45 and talk through it to the Butterfly with AVR Studio? I can hardly bel...


[Announce] AVR-Ada V0.4.0 released

Started by Rolf in comp.arch.embedded11 years ago 1 reply

We are proud to announce a new release of AVR-Ada, one of the first GCC based Ada compilers targeting 8-bit microcontrolers. You get the...

We are proud to announce a new release of AVR-Ada, one of the first GCC based Ada compilers targeting 8-bit microcontrolers. You get the project description and some documentation at http://avr-ada.sourceforge.net/ The Sourceforge development pages with the download section are at http://www.sourceforge.net/projects/avr-ada/ AVR-Ada is available in source and binary f...


Ethernet on AVR

Started by Meindert Sprang in comp.arch.embedded14 years ago 6 replies

Just a quick question: what would be a good choice of ehternet chip to attach to an AVR? My first thought is a Crystal, but maybe there are...

Just a quick question: what would be a good choice of ehternet chip to attach to an AVR? My first thought is a Crystal, but maybe there are better option? My AVr of choice would be a ATmega162. Meindert


AVR MCUs and Eclipse

Started by Ivan Wagner in comp.arch.embedded9 years ago

Hi to all, I'm really interested in developing my application on AVR MCUs using through Eclipse using the avr-eclipse plug-in which can be...

Hi to all, I'm really interested in developing my application on AVR MCUs using through Eclipse using the avr-eclipse plug-in which can be downloaded at the following link: http://sourceforge.net/projects/avr-eclipse I've seen a screen-shot (http://firefighters.cs.upb.de/images/7/78/ AVRDUDEPreferences.png) but I'm unable to find this window in my current Eclipse installation. The fol...


AVR uisp and STK500 Firmware version

Started by Ross K in comp.arch.embedded12 years ago 3 replies

I'm thinking if you use the UISP programmer with the STK500 board for AVR programming, you may have run into this already (I hope!!) I've...

I'm thinking if you use the UISP programmer with the STK500 board for AVR programming, you may have run into this already (I hope!!) I've been programming AVR devices with good success using uisp from unix (macOSX flavour) and using the STK500 with no problems. Unfortunately, I made the mistake of briefly using a PC with AVR-Studio on it, and it re-programmed my STK500 with updated fir...


C preprocessors in GCC-AVR & AVR studio

Started by terry in comp.arch.embedded13 years ago 3 replies

Hi, I am using GCC and AVR sudio in my MCU project. I find a big problem when the two tools are used together. My C program has many...

Hi, I am using GCC and AVR sudio in my MCU project. I find a big problem when the two tools are used together. My C program has many "#ifdef"/"#endif" instruction segments to control different compilation options. However, when I debug the program in AVR studio and set watch points, some locations are misaligned so that the real position of instruction lines cannot be really located. I ...


New AVRs again?

Started by Chris Carlen in comp.arch.embedded12 years ago 1 reply

Hi: Just wondering if any new AVR devices are nearing announcement, or if the ones currently on Atmel's site represent a fairly recent spurt...

Hi: Just wondering if any new AVR devices are nearing announcement, or if the ones currently on Atmel's site represent a fairly recent spurt of new developments? I am delighted to see 20MHz offerings in the AVR lineup these days. It has been almost 2 years since I have worked on an AVR project, and now need to make some changes to one. In the process I'm thinking of clearing out ...


How do I start with AVR microcontroller??

Started by Manish in comp.arch.embedded11 years ago 6 replies

Hello everyone, I am new to avr microcontroller.Which is good online tutorial for AVR micro

Hello everyone, I am new to avr microcontroller.Which is good online tutorial for AVR micro


[Q] avr-gcc and calling convention

Started by 42Bastian Schick in comp.arch.embedded12 years ago 3 replies

Hi I am starting to port our RTOS to AVR using avr-gcc ( later surely IAR, ImageCraft). Currently I am confused about the calling...

Hi I am starting to port our RTOS to AVR using avr-gcc ( later surely IAR, ImageCraft). Currently I am confused about the calling convention. The AVR-lib document says: r2-r17 are callee saved r18-27 are caller saved r25-r8 are the parameters left to right Does this mean, I must preserve the parameter values in r17-r8 ? TIA -- 42Bastian Do not email to bastian42@yahoo.com, i...


Gcc Tools for AVR Studio

Started by Klaus Hummel in comp.arch.embedded13 years ago 5 replies

There is a new gcc distribution on the Atmel Website for avr controller. http://www.atmel.com/dyn/general/tech_doc.asp?doc_id=9772 It...

There is a new gcc distribution on the Atmel Website for avr controller. http://www.atmel.com/dyn/general/tech_doc.asp?doc_id=9772 It contains avr-gcc 3.4.0 with Dwarf debug format support and an Elf/Dwarf parser component for AVR Studio. Has anybody experience with this distribution ? Klaus