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.

你好,IAR下使用了“#pragma location=”和“__persistent”会有错误提示“a __persistent variable may not be const, __no_init, or located ”,请问该怎么处理?

你好,IAR下使用了“#pragma location=”和“__persistent”会有错误提示“a __persistent variable may not be const, __no_init, or located ”,请问该怎么处理?

  • 参考wiki链接:

    http://processors.wiki.ti.com/index.php/Placing_Variables_in_Specific_Memory_Location_-_MSP430?keyMatch=pragma&tisearch=Search-EN

    以及the Assembly User's Guide:

    http://www.ti.com/lit/ug/slau131q/slau131q.pdf