{"id":272652,"date":"2016-01-22T10:51:02","date_gmt":"2016-01-22T07:51:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=272652"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=272652","title":{"rendered":"STM32F4: GNU AS: \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 (\u0427\u0430\u0441\u0442\u044c 5)"},"content":{"rendered":"<p>       \u0412\u0441\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0430 \u0434\u043b\u044f stm32f4 \u044f \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/274541\/\">STM32F4: GNU AS: \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 (\u0427\u0430\u0441\u0442\u044c 1)<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/274579\/\">STM32F4: GNU AS: \u041c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c (\u041e\u0436\u0438\u0432\u043b\u0435\u043d\u0438\u0435) (\u0427\u0430\u0441\u0442\u044c 2)<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/274901\/\">STM32F4: GNU AS: \u041c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c (\u0412\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f STM32F4 Discovery, \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f) (\u0427\u0430\u0441\u0442\u044c 3)<\/a><br \/>  <a href=\"https:\/\/habrahabr.ru\/post\/275237\/\">STM32F4: GNU AS: \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0440\u0435\u0434\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 (\u0427\u0430\u0441\u0442\u044c 4)<\/a><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0435 \u043a\u0430\u043a \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0442\u0438\u0432\u043e, \u0430 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044f\u0441\u044c \u0432 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u043c (\u0438 \u043d\u0430\u0445\u043e\u0434\u044f \u043e\u0448\u0438\u0431\u043a\u0438! \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0442\u0435\u043c \u043a\u0442\u043e \u043c\u043d\u0435 \u043e \u043d\u0438\u0445 \u043d\u0430\u043f\u0438\u0441\u0430\u043b!), \u0442\u043e \u043a \u0432\u0430\u043c \u0443\u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 \u044d\u0442\u043e \u043d\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0430\u0440\u0445\u0438\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u043c\u0430\u043b\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \ud83d\ude42 <br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0443 \u0438\u043b\u0438 \u0438\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0438 \u043f\u043b\u044e\u0441 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u044d\u0442\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043d\u0430 \u0435\u0433\u043e \u0448\u0442\u0430\u0442\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435: 168 \u043c\u0433\u0446, \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c PLL.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u044d\u0442\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0437 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0432 \u0441\u0430\u043c \u0442\u0435\u043a\u0441\u0442 \u043c\u043e\u0434\u0443\u043b\u044f. \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0442\u0430\u043a \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u2014 \u043d\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e \u043a\u043e\u0434\u0443 \u00ab\u0433\u0434\u0435 \u0435\u0449\u0435 \u043a\u0430\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f\u00bb, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u044b\u0445 \u2014 \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u2014 \u0433\u043e\u0434 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u043f\u0443\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u0442\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439).<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0432\u044b\u043d\u0435\u0441 \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430:  <\/p>\n<pre><code class=\"xml\">@ *************************************************************************** @ *                            \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0418  \u041c\u041e\u0414\u0423\u041b\u042f                            * @ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * @ *                   \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0438 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u0435\u0439                       * @ *                                                                         * @ * \u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u044b PLL                                             * @ *                                                                         * @ *          PLL_VCO = ([HSE_VALUE or HSI_VALUE] \/ PLL_M) * PLL_N           * @ *                                                                         * @ * \u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e: \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c PLL_M \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u043a\u0432\u0430\u0440\u0446\u0430 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c    * @ * \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c 2 \u041c\u0413\u0446. \u0414\u043b\u044f \u043a\u0432\u0430\u0440\u0446\u0430 8 \u041c\u0413\u0446: PLL_M = 4, \u0434\u043b\u044f \u043a\u0432\u0430\u0440\u0446\u0430 * @ * 16 \u041c\u0413\u0446: PLL_M=8, \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. (\u0441\u0442\u0440.227 RM0090 Reference manual)         * @  .equ PLL_M , 4 .equ PLL_N , 168  @ * \u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 (\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442: 168 \u043c\u0433\u0446):    * @ *                                                                         * @ *                     SYSCLK = PLL_VCO \/ PLL_P                            * @ .equ PLL_P , 2  @ * \u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u043b\u044f USB (\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442: 48 \u043c\u0433\u0446):            * @ *                                                                         * @ *           USB OTG FS, SDIO and RNG Clock =  PLL_VCO \/ PLLQ              * @ .equ PLL_Q , 7  @ * -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  * @ * \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0430 \u043f\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 (\u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0434\u0432\u043e\u0439\u043a\u0438)    * @ * \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438    * @ * \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f - \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0430 \u0432 R0     * @ * \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0442\u043e\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: 12                                         * .equ timeout, 12  @ *************************************************************************** <\/code><\/pre>\n<p>  \u0434\u0430\u043b\u0435\u0435, \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u2014 \u0432\u0441\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043d\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u044f \u0432\u043d\u0435\u0441 \u0432 \u0441\u0430\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u2014 \u0442\u0435\u043f\u0435\u0440\u044c, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c .asm \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0444\u0430\u0439\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 <b>stm32f40_def.inc<\/b> \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e (\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0430\u0436\u0435 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u0442\u0435 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u043e\u0433\u043e\u0432\u043e\u0440\u043e\u043a, \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u00ab\u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438\u043d\u044f\u0442\u043e, \u0438\u043d\u0430\u0447\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443\u0442\u00bb:  <\/p>\n<pre><code class=\"xml\">.syntax unified\t\t@ \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 .thumb\t\t\t@ \u0442\u0438\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 Thumb .cpu cortex-m4\t\t@ \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 .fpu fpv4-sp-d16\t@ \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440  @ \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u043c .equ PERIPH_BASE           ,0x40000000  .equ APB1PERIPH_BASE       ,0x00000000 .equ AHB1PERIPH_BASE       ,0x00020000 .equ RCC_BASE              ,(AHB1PERIPH_BASE + 0x3800) .equ RCC_CR                ,0x00000000 .equ RCC_CR_HSEON          ,0x00010000  .equ RCC_CR_HSERDY         ,0x00020000  .equ RCC_CR_PLLON          ,0x01000000 .equ RCC_CR_PLLRDY         ,0x02000000 .equ RCC_APB1ENR           ,0x40 .equ RCC_APB1ENR_PWREN     ,0x10000000 .equ PWR_BASE              ,(APB1PERIPH_BASE + 0x7000) .equ PWR_CR                ,0x00000000 .equ PWR_CR_VOS            ,0x4000 .equ RCC_CFGR              ,0x08 .equ RCC_CFGR_HPRE_DIV1    ,0x00000000         .equ RCC_CFGR_PPRE2_DIV2   ,0x00008000       .equ RCC_CFGR_PPRE1_DIV4   ,0x00001400         .equ RCC_CFGR_SW           ,0x00000003         .equ RCC_CFGR_SW_PLL       ,0x00000002       .equ RCC_CFGR_SWS_PLL      ,0x00000008       .equ RCC_PLLCFGR_PLLSRC_HSE,0x00400000 .equ RCC_PLLCFGR           ,0x04 .equ FLASH_R_BASE          ,(AHB1PERIPH_BASE + 0x3C00) .equ FLASH_ACR             ,0x00000000 .equ FLASH_ACR_ICEN        ,0x00000200  .equ FLASH_ACR_DCEN        ,0x00000400  .equ FLASH_ACR_LATENCY_5WS ,0x00000005  .equ FLASH_ACR_PRFTEN      ,0x00000100  <\/code><\/pre>\n<p>  \u0422\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0434\u0443\u043b\u044f, \u043f\u043e \u043d\u0430\u0448\u0438\u043c \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c \u0438\u0437 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 <b>.asmcode<\/b>, \u0438\u043c\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<pre><code class=\"xml\">.section .asmcode  .global SYSCLK168_START  SYSCLK168_START:                 PUSH    { LR }                 LDR     R7, =(PERIPH_BASE + RCC_BASE)          @ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c HSE                 LDR     R1, [R7, RCC_CR]                 ORR     R1,  R1, RCC_CR_HSEON                 STR     R1, [R7, RCC_CR]          @ \u041e\u0436\u0438\u0434\u0430\u0435\u043c \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u043a\u0432\u0430\u0440\u0446\u0430\t\t                 MOV     R0, 1                @ \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e timeout                 ADD     R6,  R7, RCC_CR      @ \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438                 LDR     R2, =RCC_CR_HSERDY   @ \u0431\u0438\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438                 BL      TST_BIT          @ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c POWER control                 LDR     R1, [R7, RCC_APB1ENR]                 ORR     R1,  R1, RCC_APB1ENR_PWREN                 STR     R1, [R7, RCC_APB1ENR]          @ \u0412\u043d. \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c &quot;\u043d\u0430\u0433\u0440\u0443\u0437\u043aa&quot; (\u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u044d\u043d\u0435\u0440\u0433\u043e\u0441\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u044f)                 LDR     R1, =(PERIPH_BASE + PWR_BASE + PWR_CR)                 LDR     R2, [R1]                 ORR     R2,  R2, PWR_CR_VOS                 STR     R2, [R1]  \t@ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0448\u0438\u043d                  LDR     R1, [R7, RCC_CFGR]             @ \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0448\u0438\u043d\u044b AHB                 ORR     R1,  R1, RCC_CFGR_HPRE_DIV1    @ HCLK=SYSCLK                 STR     R1, [R7, RCC_CFGR]                  LDR     R1, [R7, RCC_CFGR]             @ \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0448\u0438\u043d\u044b APB2                 ORR     R1,  R1, RCC_CFGR_PPRE2_DIV2   @ PCLK2=HCLK \/ 2                 STR     R1, [R7, RCC_CFGR]                  LDR     R1, [R7, RCC_CFGR]             @ \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0448\u0438\u043d\u044b APB1                 ORR     R1,  R1, RCC_CFGR_PPRE1_DIV4   @ PCLK1=HCLK \/ 4                 STR     R1, [R7, RCC_CFGR]          @ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 PLL \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438 PLL_M, PLL_N, PLL_Q, PLL_P                 LDR     R1, =RCC_PLLCFGR_val           @ \u0440\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435                 STR     R1, [R7, RCC_PLLCFGR]          @ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0435 PLL                 LDR     R1, [R7, RCC_CR]                 ORR     R1,  R1, RCC_CR_PLLON                 STR     R1, [R7, RCC_CR]          @ \u041e\u0436\u0438\u0434\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 PLL                 ADD     R0, R0, 1                 LDR     R2, =RCC_CR_PLLRDY                 BL      TST_BIT \t         @ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Flash prefetch, instruction cache, data cache \u0438 wait state                 LDR     R2, =(PERIPH_BASE + FLASH_R_BASE + FLASH_ACR)                 LDR     R1, [R2]                 LDR     R1, =(FLASH_ACR_ICEN + FLASH_ACR_DCEN + FLASH_ACR_LATENCY_5WS + FLASH_ACR_PRFTEN)                 STR     R1, [R2]          @ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c PLL \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0442\u0430\u043a\u0442\u0430                 LDR     R1, [R7, RCC_CFGR]                 BIC     R1,  R1, RCC_CFGR_SW                 ORR     R1,  R1, RCC_CFGR_SW_PLL                 STR     R1, [R7, RCC_CFGR]          @ \u041e\u0436\u0438\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 PLL                 ADD     R0, R0, 1                 ADD     R6, R7, RCC_CFGR                 LDR     R2, =RCC_CFGR_SWS_PLL \t\tBL      TST_BIT                  MOV     R0, 0\t         @ \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f                 B       exit  @ \u041f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438: ------------------------------------------ @     R0 - \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434 @     R1 - \u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f @     R2 - \u0431\u0438\u0442-\u043a\u0430\u0440\u0442\u0430 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f @     R3 \u043f\u043e\u0440\u0442\u0438\u0442\u044c\u0441\u044f ! @     R4 \u043f\u043e\u0440\u0442\u0438\u0442\u044c\u0441\u044f ! TST_BIT:                                          ADD     R3, R0, R0, lsl  timeout     @ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 timeout  TST_ready:\t\t         @ \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0442\u0430\u0439\u043c\u0430\u0443\u0442                 SUBS    R3, R3, 1                 BEQ     exit                         @ timeout \u0438\u0441\u0442\u0435\u043a, \u0432\u044b\u0445\u043e\u0434\u0438\u043c !          @ \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 HSE                 LDR     R4, [R6, 0]                 TST     R4,  R2                 BEQ     TST_ready                 BX      LR          @ \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b  exit:                 POP     { PC }  <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0434\u0443\u043b\u044f, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u043c\u0443 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"xml\">@GNU AS @ *************************************************************************** @ *                \u041c\u041e\u0414\u0423\u041b\u042c  \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0418  \u0422\u0410\u041a\u0422\u0418\u0420\u041e\u0412\u0410\u041d\u0418\u042f  STM32F4                 * @ *************************************************************************** @ * \u041c\u043e\u0434\u0443\u043b\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439     * @ * \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c PLL \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u0435-  * @ * \u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u0448\u0438\u043d \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432, \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f        * @ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * @ * \u041c\u043e\u0434\u0443\u043b\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f                 * @ * \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0437\u043e\u0432\u0430:                                                         * @ * \t\tBL SYSCLK168_START\t\t\t\t\t    * @ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * @ * \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b: R0, R1, R2, R3, R4, R6, R7 (\u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f)      * @ * \t\u041d\u0430 \u0432\u0445\u043e\u0434\u0435: \u043d\u0435\u0442                                                       * @ *     \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435: R0 - \u0441\u0442\u0430\u0442\u0443\u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f            * @ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * @ * \u0421\u0442\u0430\u0442\u0443\u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430:                                                      * @ *                    0: \u0427\u0430\u0441\u0442\u043e\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430                               * @ *                    1: \u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c HSE                          * @ *                    2: \u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c PLL                          * @ *                    3: \u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 PLL                   * <\/code><\/pre>\n<p>  \u0423 \u0432\u0430\u0441 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043c\u043e\u0434\u0443\u043b\u044f, \u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433.., \u0442\u043e \u043d\u0430\u0448\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u0438\u0433\u0430\u043b\u043a\u0430 (\u0432 \u0441\u0435\u043a\u0446\u0438\u0438 <b>.asmcode<\/b>) \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u043e\u0434\u0443\u043b\u044f \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"xml\">@ \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Start:\t\t .extern SYSCLK168_START                 BL      SYSCLK168_START     @ \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f                  MOV     R0, 0          @ \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0, \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f bitband                 MOV     R1, 1          @ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1, \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f bitband  \t\t@ \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 GPIO \t\tLDR     R2, =(PERIPH_BB_BASE + (RCC_BASE + RCC_AHB1ENR) * 32 + RCC_GPIO_EN * 4) \t\tSTR     R1, [R2]       @ \u0437\u0430\u043f\u0438\u0441\u044c R1 (&quot;1&quot;) \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u0431\u0438\u0442\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 R2 . . . <\/code><\/pre>\n<p>  \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 DELAY<\/p>\n<p>  \u0424\u0430\u0439\u043b \u043c\u043e\u0434\u0443\u043b\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"https:\/\/yadi.sk\/d\/TvdhRQ4gnXcZD\">sysclk.asm<\/a>                 <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/275653\/\"> https:\/\/habrahabr.ru\/post\/275653\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412\u0441\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0430 \u0434\u043b\u044f stm32f4 \u044f \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/274541\/\">STM32F4: GNU AS: \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 (\u0427\u0430\u0441\u0442\u044c 1)<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/274579\/\">STM32F4: GNU AS: \u041c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c (\u041e\u0436\u0438\u0432\u043b\u0435\u043d\u0438\u0435) (\u0427\u0430\u0441\u0442\u044c 2)<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/274901\/\">STM32F4: GNU AS: \u041c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c (\u0412\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f STM32F4 Discovery, \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f) (\u0427\u0430\u0441\u0442\u044c 3)<\/a><br \/>  <a href=\"https:\/\/habrahabr.ru\/post\/275237\/\">STM32F4: GNU AS: \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0440\u0435\u0434\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 (\u0427\u0430\u0441\u0442\u044c 4)<\/a><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0435 \u043a\u0430\u043a \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0442\u0438\u0432\u043e, \u0430 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044f\u0441\u044c \u0432 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u043c (\u0438 \u043d\u0430\u0445\u043e\u0434\u044f \u043e\u0448\u0438\u0431\u043a\u0438! \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0442\u0435\u043c \u043a\u0442\u043e \u043c\u043d\u0435 \u043e \u043d\u0438\u0445 \u043d\u0430\u043f\u0438\u0441\u0430\u043b!), \u0442\u043e \u043a \u0432\u0430\u043c \u0443\u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 \u044d\u0442\u043e \u043d\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0430\u0440\u0445\u0438\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u043c\u0430\u043b\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \ud83d\ude42 <br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0443 \u0438\u043b\u0438 \u0438\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0438 \u043f\u043b\u044e\u0441 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u044d\u0442\u043e\u0439 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043d\u0430 \u0435\u0433\u043e \u0448\u0442\u0430\u0442\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435: 168 \u043c\u0433\u0446, \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c PLL.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-272652","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272652"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272652\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}