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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
973件の閲覧回数
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 件の賞賛
返信
1 解決策
946件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
966件の閲覧回数
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 件の賞賛
返信
947件の閲覧回数
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 件の賞賛
返信
936件の閲覧回数
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 件の賞賛
返信
918件の閲覧回数
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 件の賞賛
返信