Hi. Could You help me to understand somethink. In STM32 like STM32F103c8... there is a clock signal called RCC_APB2Periph_AFIO. When should be turned on this signal, always when I use peripherial, like Timmer, AD, USART or I2C or maybe when I used pins attached to this peripherial? Why we turn on this clock and also we give clock to the peripherial like ADC, SPI, USART? Why not only to ADC, SPI, USART but also to AFIO?
No, it doesn't really even have anything to do with ARM - it is a specific detail of ST's STM32 chip.
You should be asking ST (or your Distributor) for support on their products!
Have you studied the STM32 User Guide?
"Home" page: www.st.com/.../1734.jsp
Reference Manuals: ">my.st.com/.../AllItems.aspx