2022-02-24 08:01 AM
I want to define a variable in assembly code and write it in R0 whit this code:
__asm__(
" var1 DD #123 \n"
" ldr.w r0, =var1 \n"
);
but I have this error when compiling:
"Error: bad instruction `var1 DD 123'"
The compiler doesn't know the "DD" for defining a "Double word" as 32-bit variable.
How can I define a variable in my assembly code and write it into e.g R0?
I use STM32Cube IDE and Cortex-M7.
Thanks
2023-01-17 06:46 AM
Still not...