Hey guys. I'm trying to lean how to work with stm32f2 series of microcontrollers.I just was very successful in lpc1768 and i programmed every thing i wanted using the user manual and the registers.I just built my project then added the start up file and just programming it by programming the registers.But in stm series i did this and it did'nt work. Has any one have experience on programming this series without using cmsis?
The chip neither knows nor cares how you write your source code:
- with/without CMSIS;
- with/without HAL;
- with/without SPL;
- C / Assembler / whatever.
If you want to write at the register level, then it's up to you to carefully study all the documentation and ensure that you are using all the registers correctly, in the correct order, etc, ...
If it's not working, then you're just going to have to get down and debug it to find what you've done wrong.
Is reference manual enough?
The Reference Manual describes the ST-specific bits.
You will also need to understand the standard ARM Core bits.
"programming without cmsis" as Andy said : The chip neither knows nor cares how you write your source code: You can cook food on any heat source I have a cookstove but could, of course, go outside and build a fire to cook on.
Thank yo guys for responses.
Hello. almost everything can be done at the register level :) there will be a lot of scribblings :) first you need to connect a file with notations and register values, namely #include "stm32f10x.h" and then everything is as usual :) eg: timer 1 access to the register ARR will be as follows TIM1-> ARR = 130; port With pin 13 set to 1 so that GPIOC-> BSRR = GPIO_BSRR_BR13; but in general, look inside the stm32f10x.x and you will be happy :)
As arman ilmak has not posted further since his "thank yo" post on 4 Jan, is it likely that (s)he's still waiting for answers on this?
"almost (sic) everything can be done at the register level"
What do you mean, "almost" ??
"first you need (sic) to connect a file with notations and register values"
Well, you don't actually need to do that - you could write it all yourself longhand using magic numbers if you really wanted ...