• Relocatable code with const data
    I need to have a relocatable code with const data referenced by the code. Can anybody help on how the code / linker commands be organised
  • Subroutines
    I have file with many subroutines. How can I use this file in my project? I have problem that in output hex file are all subroutines (used and NOT USED) example: main.c extern void Sub1(void);...
  • Forcing a subroutine to be compiled as subroutine and use BX lr
    Hi All We have a problem with a uVision project compiling a routine but not returning using BX lr. It uses B.N plus an address instead when returning - presumably because it is in-lining the subroutine...
  • Interrupt number for an interrupt subroutine
    Hi, I'm trying to use the interrupt PWMINT for a PWM program with the 167. The problem is I cannot find the correct interrupt number for the function: void Interrupt_func (void) interrupt PWMINT...
  • return value of subroutines and SCXT
    Hi, i am wondering how to give back a value of a subroutine to the calling routine and use a register when using scxt. example: SCXT CP,#0FC40h NOP CALLS something CMP R10, ONES...