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.

TMS320F28388D: How to use CM's memory barrier function in C language.

Part Number: TMS320F28388D


Hi all,

CM(Arm Cortex-M4) has memory barrier instructions, but is there a way to write this function in C language?

Regards,

  • I presume you use the proprietary TI Arm compiler.  The command which invokes this compiler is armcl.  

    This compiler supports ARM ACLE (Arm C Language Extensions) version 2.0.  Your code can use this standard header file ...

    #include <arm_acle.h>

    One way to learn about the extensions it supports is to inspect that header file.  A typical path to the directory for it is ...

    C:\ti\ccs1200\ccs\tools\compiler\ti-cgt-arm_20.2.7.LTS\include

    Search the file for Memory Barriers, and learn about the details of the intrinsics _dmb, _dsb, and _isb.

    Thanks and regards,

    -George

  • Hi George,

    Thank you very much!!

    This is exactly what I was looking for.

    Best regards,