This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to invoke functions in asm files with sysbios project

Other Parts Discussed in Thread: SYSBIOS

In my CCS5.1..0.0.9 SYSBIOS project. _CSL_intcIvpSet(); is a function in an asm file. The asm file can compile to obj successfully. but when linking the unrsolved symbol error will be shown. Is there any special setting when invoking functions in asm file with sysbios project?

And my output format is eabi(ELF). My sysbios version is 6.33.2.31

The define of _CSL_intcIvpSet();  in asm file as follow:

.global __CSL_intcIvpSet
__CSL_intcIvpSet:
  bnop b3,2
  mvkl __CSL_intcVectorTable, b0
  mvkh __CSL_intcVectorTable, b0
  mvc b0, istp

 

  • Hi Weiqiang,

    To my best knowledge, in ELF format, we no longer need to add the prefix (additional '_' or underscore) prior to the function name.  Could you please check .map file which linker generated to see if the symbol names are equal.

    If we refer _CSL_intcIvpSet() from C, the symbol which asm defines should be also _CSL_intcIvpSet(), I think.

    I hope it helps.

    Regards,
    Atsushi