Skip to main content
FRami.11
Visitor II
July 2, 2020
Question

I would like to program assembly files to link with C files, or just make Assembly alone. But don't know how to do it with STM32CUBEIDE. I can only choose between C or C++ to compile. Are there somewhere examples? Can you point me somewhere, or help

..

This topic has been closed for replies.

2 replies

TDK
July 2, 2020

The generated STM32CubeMX code includes one assembly file "startup_stm32xxx.s". You can put other files named "*.s" in any source directory and it'll compile those as well. Generate a project and use that as an example.

"If you feel a post has answered your question, please click ""Accept as Solution""."
YAY.1
Senior
September 7, 2020

I don't know STM32CubeMX.

I am just writing assembly and using iar embedded workbench arm.

If i need learn registers datas, i am using reference manual.