MPLAB assembler in linux?

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

After installing MPLABX 5.40 on my linux box I noticed that it had no assembler designated. Would like to work on the newer 0-1 series chips.  In Win10 MPLAB uses the assembler from my AS7 install. To my knowledge there is no install of AS7 for linux flavors.  I use ASM almost exclusively unless there is a burning need for C or CPP.  Wine works fine for the bare assembler (avrasm2.exe) in a terminal AFAIK but I was wondering if there was any work around for getting IDE with assembler working in Linux that I am unaware of?  Tried AVRA but MPLABX doesn't recognize it(or at least the way I have it configured).  I like the IDE and sim options in AvrS4/AS7/MPLAB.  I can install windows 10 running on a VM but my i3 is already slow and I only have 6G ram... looks like the only promising alternative.  Currently I'm on MX-19.2 linux 64b,  a Deb distro.

Thanks!

This topic has a solution.
Last Edited: Wed. Aug 26, 2020 - 11:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

try

  • Microchip AVR GCC toolchain on Linux
  • MPLAB XC8 v2.10

 

Release Notes for MPLAB® X IDE

MPLAB X IDE v5.40

May 14, 2020

...

Atmel Compiler (1)

Toolchain

Versions

...

AVR Assembler (included in Atmel Studio)

AVRASM2

2.2.6 and later

1. It is recommended that you install compilers in the same location as MPLAB XC compilers so MPLAB X IDE can find them, e.g.; C:\Program Files (x86)\Microchip\AVR_GCC.

 

  1.  

MPLAB® XC8 C Compiler Version 2.20 Release Notes for AVR® MCU

 

...

 

3.1. Version 2.20

...

Absence of AVR Assembler The AVR Assembler is no longer included with this distribution

 


AVR- and Arm- Toolchains (C Compilers) | Microchip Technology

MPLAB Ecosystem Downloads Archive | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

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

In Linux you could use avr-as which is part of the binutils that accompanies avr-gcc. Alternatively there's a "clone" of the Atmel assembler for Linux called avra which might be a better choice if you are used to the Atmel syntax.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

1. It is recommended that you install compilers in the same location as MPLAB XC compilers so MPLAB X IDE can find them, e.g.; C:\Program Files (x86)\Microchip\AVR_GCC.

How to use avr8 GNU toolchain in MPLAB X IDE Ubuntu | Microchip

...

     ii. select directory of binaries, i.e /opt/microchip/avr.../bin

 

"Dare to be naïve." - Buckminster Fuller

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

Thank you for your replies.  I guess it boils down to:  Read The Full Manual, but I'd have never found the AVR-GCC tool chain (other than in the repos) for MplabX without your link! I guess I'll be learning more about AS. syntax now.  On the other side...As i imagined, AS7/win10 in a VBox is twice as slow on my machine, but usable for my own education purposes.  Thank you for your time.