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!
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.
B.R.
VaneB
@VaneB thanks for reply,but I still can not make it
Thanks for reply,but I still didn't make it