cancel
Showing results for 
Search instead for 
Did you mean: 

Including .s file in building process [arm-none-eabi-toolchain]

sarraciro
Associate II
Posted on November 26, 2013 at 03:21

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 like

to 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 #makefile
11 REPLIES 11
Posted on November 28, 2013 at 14:00

Wouldn't the MOV PC,LR just return immediately? The push/pop of R0 is also unnecessary.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sarraciro
Associate II
Posted on November 28, 2013 at 14:54

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