How to convert a program written in absolute assembler to relocatable assembler

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

How to convert a program written in absolute assembler to relocatable assembler

Jump to solution
939 Views
roberthiebert
Senior Contributor I

Code Warrior IDE V5.9.0 special edition.

I have written a relatively small test program in absolute assembler that I am trying to convert to relocatable assembler. I haven't been able to find any instructions on how this can be done. Any suggestions would be appreciated.

0 Kudos
Reply
1 Solution
912 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

What about approach in the example I prepared.
You can investigate all things I set for RTI and all interrupts to be able to debug it and also investigate (during debugging) which interrupt was solve in the function CATCH_ME.

 

Best regards,

Ladislav

View solution in original post

0 Kudos
Reply
4 Replies
932 Views
roberthiebert
Senior Contributor I

Update:

I still can't find any instructions on how to do this so I just used the Fibo number sample and inserted my code and played around just trying things by trial and error. I was able to get part of the program to work but when I initialized the RTI and tried to run it it the debugger just gave me an illegal break point. I had a look at all the files in the project but I don't know what I should be modifying. Any suggestions would be greatly appreciated.

0 Kudos
Reply
913 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

What about approach in the example I prepared.
You can investigate all things I set for RTI and all interrupts to be able to debug it and also investigate (during debugging) which interrupt was solve in the function CATCH_ME.

 

Best regards,

Ladislav

0 Kudos
Reply
902 Views
roberthiebert
Senior Contributor I

Got it.

I see that the interrupt vectors are declared in the M9S12XEP100.inc file, so that is how you could declare them without an ORG statement. I am able to get my test program to work with relocatable assembler. Now I have to try and get the RTI interrupt to be handled by XGATE. I'll try the sample dual core example and see if I can figure how to work my code into it.

Thanks so much for your help Ladislav.

0 Kudos
Reply
884 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

hmmm, I suppose I have not missed anything but the ORG in the example is used to fill address of service routine into the interrupt vector address.

The definition in the inc file (equ) only defines vector address but not its content.

Best regards,

Ladislav

0 Kudos
Reply