We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Everyone!
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.
Thanks
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:
http://www.keil.com/support/man/docs/armasm/armasm_dom1359731119400.htm
Zawar Malik said:please give an example code or any related information
http://www.keil.com/books/armbooks.asp
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:
https://www.google.com/search?q=STM32+Cortex-M3+assembler+assembly
Thanks...!
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)
https://www.amazon.com/ARM7-Assembly-Language-Programming-examples-ebook/dp/B005455YB6