I have STM32F1xx family microcontroller. I've coded some projects into C language. Now, I want to code this microcontroller into Assembly laguage.
If Yes, I can then please give an example code or any related information.
The microcontroller just fetches and executes binary instructions from its memory - it neither knows nor cares what you wrote your source code in!
Yes, of course they can be programmed in Assembler:
Zawar Malik said:please give an example code or any related information
Joseph Yiu's Definitive Guide to ARM® Cortex®-M3 and Cortex®-M4 Processors contains some has chapters on the Instruction Set and Assembler programming...
and, of course:
I would recommend just adding code/subroutines to the assembler file already in the project, ie startup_stm32f1xx.s (or equivalent)
You can create subroutines, and call them from C and step/trace into them.
This is for ARM7, but I think is good as a source of ideas, which can be re-implemented in Thumb(2)
View all questions in Keil forum