AVR Assembler

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello ...

 

Is there a SIMPLE assembler for AVR's, with a SIMPLE IDE for editing/assembling, not a "gaseous plant" like WinAVR or AVR Studio ? Microchip refers to an "AVR Assembler", but I could not find or download such a software ...

 

Thanks for any answer ...

This topic has a solution.
Last Edited: Fri. Nov 20, 2020 - 06:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

lemiceterrieux wrote:

Is there a SIMPLE assembler for AVR's, with a SIMPLE IDE for editing/assembling, not a "gaseous plant" like WinAVR or AVR Studio ? Microchip refers to an "AVR Assembler", but I could not find or download such a software ...

 

If you've installed Studio then you have avrasm2. It's command line but easy to use with your favourite text editor.

 

C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avrassembler

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

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

As Brian says AS7 already comes with two assemblers for AVR8. There's the GNU one (same as WinAVR) but it's really just aimed at building the Asm the C/C++ compilers generate. But then there is Atmel avrasm2 which is the "simple one". It's actually a development of the original Atmel assembler from 20+ years ago. Atmel's Assembler/Asemblerv2 used to be included with AVR Studio (v1 .. v4). If you want a "simple IDE" then perhaps look at getting a legacy copy of AVR Studio 4.19. That is a simplistic build environment and it has both the original and the V2 assemblers from Atmel behind the scenes. Because it was the "assembler of choice" for almost 2 decades you will find that a lot of the legacy projects and tutorials for "AVR assembler" out on the internet are aimed at it. Not least of which, of course, is www.avrbeginners.net which is a complete guide to starting with Atmel assembler.

 

In theory Studio 4.19 would usually appear on https://www.microchip.com/mplab/... but so far that page is just drawing a blank for me.

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

There are also “Avra” and “tavrasm” that are open source assemblers that attempt to be compatible with the atmel assembler (but will run on macs/Linux, and are much smaller downloads that as7, the “toolchain” packages, or even just Gcc-binutils.

(that’s just the assemblers though. Use your favorite ide or code editor.  And no simulation or debug or upload.)

 

I guess theoretically, you could use the arduino ide for assembler (that would be the gnu assembler, though.)

 

 

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

Meanwhile I succeeded in downloading AvrAsm2 and decided to use Programmers Notebook as IDE. I did even succeed in defining compilation as a tool and to make it appear in the lower halfth of the main window but : HOW CAN I HIDE THIS STUPID "Output" WINDOW ? sad

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

Programmer's Notepad is a piece of ancient history. I doubt you are going to find much support for it these days.

 

There have got to be "better" editors to use. (personally I'd just use Notepad++ then build at the command line)

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

lemiceterrieux wrote:
HOW CAN I HIDE THIS STUPID "Output" WINDOW ?

 

Wow, are you ever cranky!  Who poured thunderclouds into your bowl of sunshine this morning?

 

What do you have against the output window?  Its there to provide information...good and bad regarding your code.

 

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

jgmdesign wrote:
What do you have against the output window?  Its there to provide information...

and, if it's equivalent to the Atmel/Microchip/Microsoft Studio Output Window, that information is invaluable.

 

 

(I'll leave Jim with the exclamation mark for today)

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found that F8 closes it and "googled" that sometimes "Escape" does the same ...

Last Edited: Fri. Nov 20, 2020 - 10:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use avrasm2.exe with an editor that allows quick access to the command line.  Then I have the assembler call in a single-line batch file:a.bat.  The line in the batch file is

 avrasm2 -fI  %1.asm  -l %1.lst -o %1.hex 

 

On the command prompt, use:  a myAsmCode  (no extension) <enter>.   This returns the hex file and the list file.

 

Another batch file uses AVRdude.exe to load the hex code into the AVR device (a Mega8 in this case) using a USBasp programmer for ISP:

   avrdude -p m8 -c usbasp -P usb -U flash:w:%1.hex

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

I prefer using an extra programmer with its software : ISP2 with AVRISP-U, by Kanda.

About the "Output" Windows : I noticed that the usual icons are not present, and that the window cannot be resized, only moved to the edge of the main window. So I wonder what could be really displayed ?

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

The mistake you are making is using Programmer's Notepad. Back in the late 90's and early 00's a number of contenders for "general purpose IDE" were developed such as Eclipse, Code::Blocks, Programmer's Notepad and others. Some of these went on to flourish... Eclipse especially is ubiquitous and used widely for all sorts of things. But some remained niche and never really got anywhere. Programmer's Notepad falls into the latter category. It's not going to have all the bells and whistles, fancy features and even what are now considered basic features of modern IDEs. You may want to explore something a little more "2020".

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

try GEANY ..it is free and usable for many languages...there's lots of plugins if you want to add-on, and  if you want bare simplicity..don't add them..\

   ....NOTE: I have NOT tried it with AVR asm

 

I like it because it is multi-tabbed, in a convenient way.

 

https://www.geany.org/

 

https://wiki.geany.org/config/av...

https://github.com/Zenidog8/AVR-...

 

Geany - The Flyweight IDE

Geany is a powerful, stable and lightweight programmer's text editor that provides tons of useful features without bogging down your workflow.

It runs on Linux, Windows and MacOS is translated into over 40 languages, and has built-in support for more than 50 programming languages.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

I tend to use Geany, though I have one minor grumble; although there is a keyboard shortcut to get from the editing panes to the terminal pane, there isn't one to go back!

 

But for something like Gtk development, where the compilation stage needs a script to run, it's easier in the terminal than playing around with things like Code::Blocks. I like CB for compiling raw C programs, and for the integration of the debugger, but I find the program itself incredibly buggy on Linux: from simply stopping without warning to refusing to start the debugger to opening files with nothing visible to debug defaults to all variables in decimal and no ability to change the formatting of automatics to opening system dialogue boxes full of empty... it tends to get saved a lot more often than it needs to, and stopped and started a lot too.

 

Eclipse... that buries itself too deeply in the system to be sure just what you're looking at. I have an eclipse instance for STM Arm development and that works fine, but I can't make another instance for e.g. x64 compilation even open, even after removal and reinstallation. I think it tries to be too many things to too many people. I'm sure if one is an eclipse guru everything is wonderful, but on my system it's really not so hot.

 

Neil