Hey guys, I am facing an issue that I couldn’t turn arround, I would like to ask your help.
I am trying to add an assembly code mixed to my Cpp code, but the issue “arm-none-eabi-as: unrecognized option `-x’” always happen. what could I do to fix this? I am following the mbed page https://developer.mbed.org/cookbook/Assembly-Language#debugging-assembly-language and simplifying the code example.
AREA asm_func, CODE, READONLY @ Export my_asm function location so that C compiler can find it and link EXPORT my_asm my_asm: CMP R0, #0 ITE EQ MOVEQ R0, #1 MOVNE R0, #0 BX LR END
This is my assembly code. But I guess this is not the problem.