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.

TMS320F28377D-EP: Intrinsic functions __byte and __byte_peripheral_32

Part Number: TMS320F28377D-EP
Other Parts Discussed in Thread: C2000WARE

Hello,

I am using the CAN bus interface and it looks like the following intrinsic functions are widely used:

The software code will be embedded in a product within a highly regulated field, meaning that I cannot rely on the compiler self generated code unless I have the source code (DO178C).

Therefore, my question is, would it be possible to get the equivalent asm or C code for those two functions?

Thank you in advance.

Laurent

 

  • Hi Laurent,

    Let me see about finding the right owner for this. Please allow 1-2 business days for this.

    Regards,

    Vince

  • would it be possible to get the equivalent asm or C code for those two functions?

    These intrinsics don't work that way.  It is better to think of them as decorations to a memory access (read or write) that tell the compiler what instructions are valid for that access.

    I suggest you find some example code in C2000Ware which uses these intrinsics.  Build it with the compiler flag --src_interlist.  This compiler option has two effects.

    1. The generated assembly file is not deleted. This file has the same name as the source file, with the file extension changed to .asm.
    2. Comments are added which make the assembly code easier to understand.

    Inspect the assembly code to see the effect these intrinsics have.

    Thanks and regards,

    -George