2013-11-25 06:21 PM
Hi guys,
I'm try to include a set of ASM functions in a project. I have to build this project with arm-none-eabi on a STM32F4-Discovery. My question is how modify the makefile to include the correct building process?
I tryed to add SRCS += filename.s line but it does not liketo the compiler
that reply: No rule to generate object ''path/filename.s''. needed for ''main.elf''. Stop.It's sound strange because in the make file there is yet a .s ''startup_stm32f4xx.s'' that seems included with the synthax above.
I attach it for your considerations.
Regards #stm32f4-discovery #assembly-language #know-your-tools #makefile2013-11-28 05:00 AM
Wouldn't the MOV PC,LR just return immediately? The push/pop of R0 is also unnecessary.
2013-11-28 05:54 AM
Yes clive1,
I have a mistake... was banal... re-writing correcly the function work properly... the mov instruction returned immediatly (I do know why I put it there...) I tryed also multiple return of r0 & r1 and work again.. Thanks