how to include vector table data file

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

how to include vector table data file

1,750 Views
shilpa1
Contributor I

In my project (MIMXRT1176) i have a file auto-generated , exported directly from the _lib.xls(Library Master Spreadsheet).
the file is .src data file. How can i include this file in compilation. Is it possible by enabling any gcc flag ? or the file require complete modification.

My file looks like

AREA REL,PIC,READONLY,ALIGN=4

EXPORT text
EXPORT txttbl

a EQU 1
b EQU 2
c EQU 4
d EQU 8

;xy must always be the first element in this table

text
base

xy DCW 1
DCB 0
DCB "START",0
DCB "",0
ALIGN 1
zw DCW 2
DCB 0
DCB "** * processing  * **",0
DCB "",0
ALIGN 1
.

 

.

.

.

.

.

.

ALIGN 2
txttbl
DCW xy-base,zw-base
DCW .-base,.-base
.
.

.

END

 

0 Kudos
Reply
6 Replies

1,677 Views
ErichStyger
Specialist I

Hi @shilpa1 ,

see https://mcuoneclipse.com/2022/02/18/using-custom-source-file-extensions-with-eclipse-cdt-gnu-make-bu... how you can include a file with a custom extension.

In your case, you need to assign the (GNU) ARM assembler. Keep in mind that in order to assemble your file by the assembler, it shall be written in the GNU assembly syntax. See https://gcc.gnu.org/onlinedocs/gcc/Basic-Asm.html#Basic-Asm for some details on this.

I hope this helps,

Erich

0 Kudos
Reply

1,705 Views
shilpa1
Contributor I

I could like the clarify my exact situation.
I have the armasm file, which holds the look up table for my implementation (something similar to the one i mentioned above). This file is not taken up in compilation even we force it to compiler its format is not supported. how can I include this in my c project.

0 Kudos
Reply

1,682 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply and clarification.
The MCUXpresso IDE use the arm-none-eabi-gcc to compile the code project, I'd like to suggest you check the GCC compiler whether can support your file by referring to the guider.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos
Reply

1,728 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Before answering your question, I was wondering if you can introduce your testing environment, such as IDE, source code, etc.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos
Reply

1,722 Views
shilpa1
Contributor I

I use MCUXpresso IDE. 

MCUXPRESSO_SDK
CPU_MIMXRT1176DVMAA

Regards

0 Kudos
Reply

1,712 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply and clarification.
According to your statement, it seems like you want to contain a customized file (.src data file) to the SDK library demo, in my opinion, it's unavailable to do it, moreover, the SDK library demo also has provided the vector table data, it's unnecessary to add a customize file to replace it.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply