This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

lable for register

I have a problem with labels for registers (STM32).
For ex. the code below:


    AREA asm_area, CODE, READONLY
        EXPORT  asm_check_inputs

chan_val        equ r0

asm_check_inputs
        mov             chan_val,#0x200
        nop

        END

Causes error:
error: A1647E: Bad register name symbol, expected Integer register
If I use r0 directly, it's ok.

Does anybody know what's wrong?