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.
Solved! Go to Solution.
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
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.
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.
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