Weird assembly error in amr cortex m7f
โ Rust ๐ 2025-12-12 ๐ค surdeus ๐๏ธ 1Hey guys, I'm writing code for an project and I'm using the verdim imx8mp SOM that have an Arm Cortexยฎ-M7F that I'm going to use as a way to integrate the gpio part of the project.
I'm using the cortex-m in version 0.7.7 and when I compile the code got this that is super weird:
error: unknown directive
|
note: instantiated into assembly here
--> <inline asm>:5:25
|
5 | .thumb_func
| ^
error: invalid operand for instruction
|
note: instantiated into assembly here
--> <inline asm>:8:5
|
8 | mov r0, lr
| ^
error: invalid operand for instruction
|
note: instantiated into assembly here
--> <inline asm>:9:34
|
9 | ... movs r1, #4
| ^
error: invalid operand for instruction
|
note: instantiated into assembly here
--> <inline asm>:10:33
|
10 | ... tst r0, r1
| ^
error: invalid operand for instruction
|
note: instantiated into assembly here
--> <inline asm>:12:33
|
12 | ... mrs r0, MSP
| ^
error: invalid operand for instruction
|
note: instantiated into assembly here
--> <inline asm>:15:33
|
15 | ... mrs r0, PSP
| ^
I'm not using any type of assembly code in my project is just rust for the arm processor and for the a53 CPU.
Does anybody can help me debug this? If you need a code snippet from my project feel free to ask
Thanks for the help in advance
1 post - 1 participant
๐ท๏ธ Rust_feed