how to add a macro function in symbols with S21DS?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to add a macro function in symbols with S21DS?

1,054件の閲覧回数
JhonYF
Contributor II

As below,I want add a macro function named "Error_Handler()", the value is aseembly code,but it can not work and result the IDE report an error"expected string literal before 'BKPT",I don not konw what to do next , hope for help  ,thanks!

“Error_Handler()” is the macro function“Error_Handler()” is the macro function

タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,025件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @JhonYF 

I tried to reproduce your issue and got the same error as you. This error does not appear when you use the __asm__("BKPT") directly in the code, so it looks like the problem is macro. 

Please refer to the community post below, which provides recommendations that will be useful for you. 

Using Assembler Macros in C

 

B.R.

VaneB

0 件の賞賛
返信

961件の閲覧回数
JhonYF
Contributor II

@VaneB thanks for reply,but I still can not make it 

0 件の賞賛
返信

1,003件の閲覧回数
JhonYF
Contributor II

Thanks for reply,but I still didn't make it 

0 件の賞賛
返信