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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,007 次查看
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 解答
980 次查看
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 回复数
1,000 次查看
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 项奖励
回复
981 次查看
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 项奖励
回复
970 次查看
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 项奖励
回复
952 次查看
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 项奖励
回复