How to use Microchip-Studio assembler projects in MPLAB-X

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

Unfortunately, the direct import of Studio Assembler projects into MPLAB-X V6 is still not possible.
My first question: Is that planned at some point?
Ok, I create an assembler project and add my Asm source files manually.
My second question: Why can't an EntryFile be assigned now?
Via 'Assemble File' of the correct file assembling the entire project with some include files is possible without any problems. But when I try to use "Build main project" I get countless error messages from symbols that were not found... Third question: How is the project set up correctly? I can't figure it out at all...

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

Stef45 wrote:
My first question: Is that planned at some point?
Maybe macOS AVRASM2 is in-work; IIRC, PIC assembler was recently made multi-platform.

Assembler for the AVR128DB28? | AVR Freaks

 

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

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

Stef45 wrote:
Ok, I create an assembler project and add my Asm source files manually.
Using AVR® Assembler with MPLAB® X IDE Projects - Developer Help

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

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

Thanks for your quickly help gchapman, I will study it 🙂

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

Stef45 wrote:
direct import of Studio Assembler projects into MPLAB-X V6 is still not possible

out of interest (not tried MPLAB yet), is it possible to directly import "conventional" projects?

 

EDIT

 

This video says it works for "any" Studio project: https://www.youtube.com/watch?v=...

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...
Last Edited: Fri. Jan 7, 2022 - 10:49 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

is it possible to directly import "conventional" projects?

 

yes cproj/cppproj

Last Edited: Fri. Jan 7, 2022 - 01:55 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So what goes wrong on an assembler-only project?

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

awneil wrote:

So what goes wrong on an assembler-only project?

 

The import (.atsln / .asmproj) is not intended.

 

Ok, after adding all existing asm-files ( items) to source files

the solution consists of the exclusion of all include files from the project in the project properties, which  then only contains the "entry file".

Last Edited: Fri. Jan 7, 2022 - 02:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Stef45 wrote:
The import (.atsln / .asmproj) is not intended.

Just a thought, but the .asmproj content format looks the same  as the content format for .cproj - so I wonder if you could just rename the .asmproj to .cproj ... ?

 

(maybe also the reference in the .atsln)

 

the solution consists of the exclusion of all include files from the project in the project properties, 

Are they added when you actually build the project?

 

 

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
Just a thought, but the .asmproj content format looks the same  as the content format for .cproj - so I wonder if you could just rename the .asmproj to .cproj ... ?

 

Import works but there is a message

 

"Some of the files in this Project "name" contain spaces or odd characters in their name or their path. This could potentially cause issues during the build process. This is a limitation of GNU Make tool that we use as part of our build process. Removing spaces from all file and folder names included in this project will eliminate this potential issue"

 

and build is failed.

 

awneil wrote:
Are they added when you actually build the project?

 

Yes they included (from "Entry File" in project to be created as described).

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

GermanFranz wrote:
Import works but there is a message

 

"Some of the files in this Project "name" contain spaces or odd characters in their name or their path. This could potentially cause issues during the build process. This is a limitation of GNU Make tool that we use as part of our build process. Removing spaces from all file and folder names included in this project will eliminate this potential issue"

Yes, that is a well-known issue - it's not just about GNU make: 

 

https://www.avrfreaks.net/commen...

 

https://www.avrfreaks.net/commen...

 

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...