Invoke armasm assembler in MCUXpresso IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invoke armasm assembler in MCUXpresso IDE

1,225 Views
shilpa1
Contributor I

I have legacy assembly source files that use the "armasm" syntax.

And I find that I need to Use "armasm" to assemble legacy armasm syntax assembly code. 

How can I invoke the armasm assembler in MCUXpresso IDE.

0 Kudos
6 Replies

1,213 Views
ErichStyger
Senior Contributor V

By default, an Eclipse auto-build project is tied to a certain tool chain (e.g. GNU), so won't be easy to direct certain files to a different tool like the assembler.

What I would do is to create a simple make file based project (see https://mcuoneclipse.com/2017/07/22/tutorial-makefile-projects-with-eclipse/ for a tutorial) and build your assembler files with armasm, then use the generated object files (or build an archive/library) in your other project.

I hope this helps,

Erich

0 Kudos

1,203 Views
shilpa1
Contributor I

where can I update the compiler options in exiting MCUxpresso IDE project (CC_OPTIONS )

 

 

0 Kudos

1,201 Views
ErichStyger
Senior Contributor V

Project > Properties, then C/C++ Build > Settings.

0 Kudos

1,199 Views
shilpa1
Contributor I

In that settings MCU C compiler where exactly i need to set cc flags, is that in miscellaneous->other flags ? 

0 Kudos

1,191 Views
ErichStyger
Senior Contributor V

yes. But if you are using a make file project as I suggested, you simply add your options in the make file itself.

0 Kudos

1,185 Views
shilpa1
Contributor I

AREA REL,PIC,READONLY,ALIGN=4

EXPORT text
EXPORT txttbl

NML EQU 1
ABNRHY EQU 2
BO EQU 4
ABN EQU 8

text
base

snf DCW 1
DCB 0
DCB " ",0
DCB "",0
ALIGN 1
spedanl DCW 2
DCB 0
DCB "** * * **",0
DCB "",0
ALIGN 1
sagspami DCW 3
DCB 0
DCB "*** ***",0
DCB "",0
ALIGN 1
stwlvw DCW 6
DCB 0
DCB " ",0
DCB "",0
ALIGN 1
ssr DCW 19
DCB NML
DCB " ",0
DCB " ",0
ALIGN 1
sarat DCW 20
DCB 0
DCB " ",0
DCB "",0
ALIGN 1

ALIGN 2
txttbl
DCW spedanl-base,sagspami-base,stwlvw-base,ssr-base,sarat-base
DCW snf-base

END

This is the .src file content and I want to include it in my project , may i know how exactly this can be done. If makefile modification required may i know the correct flag for that.

0 Kudos