{"id":205028,"date":"2013-12-06T13:50:02","date_gmt":"2013-12-06T09:50:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=205028"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=205028","title":{"rendered":"<span class=\"post_title\">STM32 \u043d\u0430 MAC OS<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041a\u0430\u043a \u0442\u043e \u0440\u0430\u0437 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0435\u0439 \u0438\u0434\u0435\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u043e\u0434\u043d\u0438\u043c\u0438 \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u0430\u043c\u0438 \u0438 \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 RS \u0442\u0440\u0438\u0433\u0435\u0440\u0430\u043c\u0438, \u0438 \u043f\u043e\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p>  \u0412 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u044f \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043d\u043e\u043b\u044c, \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0447\u0430\u0442\u044c \u0433\u0443\u0433\u043b\u0438\u0442\u044c \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u0441\u0442\u0430\u0442\u0435\u0439. \u0421\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u043b\u0430 \u044f\u0441\u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u0424\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430 \u0438 \u0413\u0430\u0440\u0432\u0430\u0440\u0434\u0441\u043a\u043e\u0439, \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0432\u0435\u0449\u0430\u043c\u0438, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  \u0418\u0437-\u0437\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043c\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 <b>PIC<\/b>, \u043d\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0430\u0432\u0438\u043b \u043c\u0435\u043d\u044f \u043d\u0430 \u043f\u0443\u0442\u044c \u043f\u0440\u0430\u0432\u0435\u0434\u043d\u044b\u0439 \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u043a\u043e\u043f\u0430\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 <b>STM<\/b> \u0438 <b>AVR<\/b>, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0435\u0431\u0435\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0435 \u043d\u0430 \u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u0418 \u0432\u0441\u043a\u043e\u0440\u0435 \u044f \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u043b \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0443 <b>STM32F4 Discovery kit for STM32F407<\/b><\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u043e\u0441\u0438\u043b\u0441\u044f \u0441 \u043d\u0435\u0439 \u043f\u043e \u0434\u043e\u043c\u0443 \u0438 \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u0433\u0430\u044e\u0442 LED\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0433\u0438\u0440\u043e\u0441\u043a\u043e\u043f. \u041d\u043e \u043f\u043e\u0440\u0430 \u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0438 \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041f\u043e\u0441\u043b\u0435 30 \u043c\u0438\u043d\u0443\u0442 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u044f \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e 95% \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u043e\u0434 Windows, \u0430 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438 Linux \u0438 Mac OS \u0433\u0443\u043b\u044f\u044e\u0442 \u043b\u0435\u0441\u043e\u043c. \u042f \u043f\u0440\u043e\u0432\u0435\u043b 3 \u0434\u043d\u044f \u043f\u043e \u0432\u0435\u0447\u0435\u0440\u0430\u043c \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0438 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0438\u043c\u0435\u0435\u043c \u043f\u043e\u043b\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 STM32 \u043f\u043e\u0434 Mac OS.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h5>IDE<\/h5>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 Eclipse(Indigo R Eclipse IDE for C\/C++ Developers Mac Cocoa 64-bit). \u0418\u0434\u0435\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fwww.eclipse.org%2Fdownloads%2Fdownload.php%3Ffile%3D%2Ftechnology%2Fepp%2Fdownloads%2Frelease%2Findigo%2FR%2Feclipse-cpp-indigo-incubation-macosx-cocoa-x86_64.tar.gz&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNFZlwBc_dXBZfS0OxmPbwxDLnAzqg\">Eclipse<\/a> \u043a\u0430\u0447\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c.<\/p>\n<h5>GNU ARM toolchain<\/h5>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 <a href=\"http:\/\/www.gnuarm.com\/files.html\">http:\/\/www.gnuarm.com\/files.html<\/a>. \u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 <b>arm-elf-gcc<\/b> \u0438\u043b\u0438 <b>arm-elf-g++<\/b> \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 &#8212;<i> Bad CPU type in executable<\/i>. \u041f\u043e\u0447\u0435\u043c\u0443? \u042f \u0435\u0449\u0451 \u043d\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u044e \u0441\u0441\u044b\u043b\u043e\u0447\u043a\u0443 \u043d\u0430 \u043c\u043e\u0439 fork \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f <a href=\"https:\/\/www.google.com\/url?q=https%3A%2F%2Fgithub.com%2Fparikmaher534%2Farm-eabi-toolchain&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNEoh_frEevIyyE2HaONghlpJfB3Iw\">arm<\/a>. <\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0432\u044b\u043a\u0430\u0447\u0430\u0435\u043c \u2014 <code>git clone https:\/\/github.com\/jsnyder\/arm-eabi-toolchain.git<\/code><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u2014 <code>brew install mpfr gmp libmpc texinfo<\/code><br \/>  \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043c \u0432\u044b\u043a\u0430\u0447\u0430\u043d\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u2014 <code>cd arm-eabi-toolchain<\/code><br \/>  \u0418 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c:<br \/>  <code>mkdir -p $HOME\/arm-cs-tools\/bin export PATH=$HOME\/arm-cs-tools\/bin:$PATH CC=clang make cross-binutils cross-gcc cross-g++ cross-newlib make cross-gdb export PATH=$HOME\/arm-cs-tools\/bin:$PATH make clean<\/code><\/p>\n<h5>ST-LINK<\/h5>\n<p>  \u0418\u0434\u0435\u043c <a href=\"https:\/\/www.google.com\/url?q=https%3A%2F%2Fgithub.com%2Fparikmaher534%2Fstlink&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNE4CowEVsJP2T6LlyCAdY-rf8aCUg\">\u0441\u044e\u0434\u0430<\/a> \u043a\u0430\u0447\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 README. \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e \u0434\u0435\u0431\u0430\u0433\u0435\u0440 <a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fwww.st.com%2Fweb%2Fcatalog%2Ftools%2FFM146%2FCL1984%2FSC720%2FSS1454%2FPF219866&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNGV8MKtHNWjzfe8aWrCfgyeDGGbiw\">ST-LINK<\/a>.<\/p>\n<h5>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u043e\u0435\u0434\u0438\u043d\u043e. <br \/>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Eclipse. \u0418\u0434\u0435\u043c \u0432 <i>Help -&gt; Install New Software.<\/i> \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443<i> Available Software Sites<\/i>. \u041d\u0430\u0445\u043e\u0434\u0438\u043c<i> CDT Juno<\/i>, \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0438 \u0436\u043c\u0435\u043c OK. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u043e\u043b\u0435 <i>Work with<\/i> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <i>CDT Juno<\/i>. \u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u0438\u0449\u0435\u043c <i>GCC Cross Compiler<\/i>, \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0430 \u043f\u043e\u0442\u043e\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <i>Finish<\/i>.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  \u0418\u0434\u0435\u043c \u0432 <i>File -&gt; New -&gt; C++ Project<\/i>. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <i>Executable Cross Compile Project<\/i>, \u0434\u0430\u0435\u043c \u0435\u043c\u0443 \u0438\u043c\u044f \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <i>Finish<\/i>.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c.<br \/>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0438 \u0438\u0434\u0435\u043c \u0432 <i>Properties -&gt; C\/C++ Build -&gt; Settings<\/i>.<br \/>  <i>\u0412 Cross GCC Assembler -&gt; General -&gt; Assembler flags \u043f\u0438\u0448\u0435\u043c -mthumb -mcpu=cortex-m4<br \/>  \u0412 Cross GCC Compiler -&gt; Miscellaneous -&gt; Other flags \u043f\u0438\u0448\u0435\u043c -c -mthumb -mcpu=cortex-m4<br \/>  \u0412 Cross G++ Compiler -&gt; Miscellaneous -&gt; Other flags \u043f\u0438\u0448\u0435\u043c -c -mthumb -mcpu=cortex-m4<br \/>  \u0412 Cross GCC Linker -&gt; Miscellaneous -&gt; Linker flags \u043f\u0438\u0448\u0435\u043c:<br \/>  -T &quot;${ProjDirPath}\/stm32_flash.ld&quot; -mthumb -mcpu=cortex-m4 -Wl,-Map=linker.map -Wl,-cref -Wl,&#8212;gc-sections<\/i><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0432\u0438\u0434\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0443\u0442 \u0436\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0430\u0431 <i>Build Steps<\/i> \u0438 \u0432 \u043f\u043e\u043b\u0435 Command \u043f\u0438\u0448\u0435\u043c<br \/>  <i>arm-none-eabi-objcopy -I ihex &quot;${ProjName}&quot; &quot;${ProjName}.ihex&quot;<\/i><\/p>\n<h5>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/h5>\n<p>  <a href=\"https:\/\/www.google.com\/url?q=https%3A%2F%2Fgithub.com%2Fparikmaher534%2FSTM32-Empty-Project&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNGDXM2lLti4uhNJNZ-rDWV-U_Wt9Q\">\u0417\u0434\u0435\u0441\u044c<\/a> \u043a\u0430\u0447\u0430\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u0412 \u043d\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u0431\u043e\u0440\u0434\u0430 \u0443\u043c\u0435\u043b\u0430 \u043c\u0438\u0433\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430\u043c\u0438.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u044b \u0441\u043a\u0430\u0447\u0430\u0435\u0442\u0435 \u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 Eclipse. \u041d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0443\u0442\u0438 \u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c. \u041e\u043f\u044f\u0442\u044c \u0436\u0435 \u0438\u0434\u0435\u043c \u0432 <i>Properties -&gt; C\/C++ Build -&gt; Settings.<\/i><br \/>  \u0422\u0443\u0442 \u0443 <i>Cross GCC Compiler<\/i> \u0438 <i>Cross G++ Compiler<\/i> \u0432 <i>Includes<\/i> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c<br \/>  <i>&quot;${workspace_loc:\/${ProjName}\/inc\/STM32F4xx_StdPeriph_Driver\/inc}&quot;<br \/>  &quot;${workspace_loc:\/${ProjName}\/inc\/STM32F4xx_StdPeriph_Driver\/src}&quot;<br \/>  &quot;${workspace_loc:\/${ProjName}\/inc\/CMSIS}&quot;<br \/>  &quot;${workspace_loc:\/${ProjName}\/inc\/STM32F4xx}&quot;<br \/>  &quot;${workspace_loc:\/${ProjName}\/inc}&quot;<\/i><br \/>   \u0438 \u0436\u043c\u0451\u043c OK.<\/p>\n<h5>\u041f\u043e\u0435\u0445\u0430\u043b\u0438<\/h5>\n<p>  \u0412\u0440\u043e\u0434\u0435 \u0432\u0441\u0435. \u041f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c st-link \u0438 gdb \u043a eclipse \u044f \u043d\u0435 \u0441\u0442\u0430\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0432\u0441\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<p>  \u0412 <i>Eclipse<\/i> \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u043e\u0439 <i>Build<\/i>.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0443\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c \u0447\u0442\u043e \u0441\u0431\u043e\u0440\u043a\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u0430\u044f \u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b\u0438\u043a \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u043f\u043b\u0430\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 USB.<\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c (\u043b\u0443\u0447\u0448\u0435 iterm). \u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0442\u0430\u0431\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <i>st-link.<\/i> \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e.  <\/p>\n<blockquote><p>parikmaher say: st-util <\/p>\n<p>  2013-12-05T22:48:22 INFO src\/stlink-common.c: Loading device parameters\u2026<br \/>  2013-12-05T22:48:22 INFO src\/stlink-common.c: Device connected is: F4 device, id 0x10016413<br \/>  2013-12-05T22:48:22 INFO src\/stlink-common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes<br \/>  Chip ID is 00000413, Core ID is 2ba01477.<br \/>  Target voltage is 2879 mV.<br \/>  Listening at *:4242&#8230;<\/p><\/blockquote>\n<p>  \u041c\u044b \u0432\u0438\u0434\u0438\u043c \u043a\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0432\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430 \u043f\u043e\u0440\u0442 <i>4242<\/i>.<\/p>\n<p>  \u0412 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0440\u0430\u043d\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 arm-none-eabi-gdb  <\/p>\n<blockquote><p>parikmaher say: arm-none-eabi-gdb<\/p>\n<p>  GNU gdb (32-bit ARM EABI Toolchain JBS-2013.05-23-v2013.05-1-gd66a29f) 7.4.50.20120716-cvs<br \/>  Copyright \u00a9 2012 Free Software Foundation, Inc.<br \/>  License GPLv3+: GNU GPL version 3 or later &lt;<a href=\"http:\/\/gnu.org\/licenses\/gpl.html\">gnu.org\/licenses\/gpl.html<\/a>&gt;<br \/>  This is free software: you are free to change and redistribute it.<br \/>  There is NO WARRANTY, to the extent permitted by law. Type \u00abshow copying\u00bb<br \/>  and \u00abshow warranty\u00bb for details.<br \/>  This GDB was configured as &quot;&#8212;host=x86_64-apple-darwin12.5.0 &#8212;target=arm-none-eabi&quot;.<br \/>  For bug reporting instructions, please see:<br \/>  &lt;<a href=\"https:\/\/github.com\/jsnyder\/arm-eabi-toolchain\">github.com\/jsnyder\/arm-eabi-toolchain<\/a>&gt;.<br \/>  (gdb)<\/p><\/blockquote>\n<p>  \u0412\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0434\u0435\u0432\u0430\u0439\u0441\u0443. \u041d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>target remote :4242<\/i>  <\/p>\n<blockquote><p>(gdb) target remote :4242<br \/>  Remote debugging using :4242<br \/>  0x08000b70 in ?? ()<\/p><\/blockquote>\n<p>  \u0412 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0433\u0434\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d st-link \u043c\u044b \u0434\u043e\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u043d\u0444\u0443 \u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 GDB  <\/p>\n<blockquote><p>KARL \u2014 should read back as 0x03, not 60 02 00 00<br \/>  GDB connected.<\/p><\/blockquote>\n<p>  \u041d\u0443 \u0438 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u043b\u0441\u043b\u0435\u0434\u043d\u0435\u0435. \u041d\u0443\u0436\u043d\u043e \u043d\u0430\u043a\u0430\u0442\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u043d\u043e\u0432\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443.<br \/>  \u0418\u0434\u0435\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441 GDB \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>load<\/i><\/p>\n<blockquote><p>(gdb) load \u043f\u0443\u0442\u044c_\u043a_\u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0443_.ihex <br \/>  Loading section .sec1, size 0xc10 lma 0x8000000<br \/>  Start address 0x8000b70, load size 3088<br \/>  Transfer rate: 3 KB\/sec, 3088 bytes\/write.<\/p><\/blockquote>\n<p>  \u0410 \u0432 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0432\u0441\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043d\u0430\u043a\u0430\u0442\u0438\u043b\u043e\u0441\u044c  <\/p>\n<blockquote><p>2013-12-05T22:56:04 INFO src\/stlink-common.c: Attempting to write 16384 (0x4000) bytes to stm32 address: 134217728 (0x8000000)<br \/>  EraseFlash \u2014 Sector:0x0 Size:0x4000<br \/>  Flash page at addr: 0x08000000 erased<br \/>  2013-12-05T22:56:05 INFO src\/stlink-common.c: Finished erasing 1 pages of 16384 (0x4000) bytes<br \/>  2013-12-05T22:56:05 INFO src\/stlink-common.c: Starting Flash write for F2\/F4<br \/>  2013-12-05T22:56:05 INFO src\/stlink-common.c: Successfully loaded flash loader in sram<br \/>  size: 16384<br \/>  2013-12-05T22:56:05 INFO src\/stlink-common.c: Starting verification of write complete<br \/>  2013-12-05T22:56:05 INFO src\/stlink-common.c: Flash written and verified! jolly good!<\/p><\/blockquote>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0432 gdb \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u2018c\u2019 (continue). \u041f\u043b\u0430\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u043c\u0438\u0433\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u044f\u044f \u0451\u043b\u043a\u0430.<\/p>\n<p>  \u0412\u0441\u0451 \u043e \u0447\u0435\u043c \u044f \u043f\u0438\u0441\u0430\u043b \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 100% \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u041d\u043e \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445.<br \/>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/205028\/\"> http:\/\/habrahabr.ru\/post\/205028\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041a\u0430\u043a \u0442\u043e \u0440\u0430\u0437 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0435\u0439 \u0438\u0434\u0435\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u043e\u0434\u043d\u0438\u043c\u0438 \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u0430\u043c\u0438 \u0438 \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 RS \u0442\u0440\u0438\u0433\u0435\u0440\u0430\u043c\u0438, \u0438 \u043f\u043e\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p>  \u0412 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u044f \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043d\u043e\u043b\u044c, \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0447\u0430\u0442\u044c \u0433\u0443\u0433\u043b\u0438\u0442\u044c \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u0441\u0442\u0430\u0442\u0435\u0439. \u0421\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u043b\u0430 \u044f\u0441\u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u0424\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430 \u0438 \u0413\u0430\u0440\u0432\u0430\u0440\u0434\u0441\u043a\u043e\u0439, \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0432\u0435\u0449\u0430\u043c\u0438, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  \u0418\u0437-\u0437\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043c\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 <b>PIC<\/b>, \u043d\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0430\u0432\u0438\u043b \u043c\u0435\u043d\u044f \u043d\u0430 \u043f\u0443\u0442\u044c \u043f\u0440\u0430\u0432\u0435\u0434\u043d\u044b\u0439 \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u043a\u043e\u043f\u0430\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 <b>STM<\/b> \u0438 <b>AVR<\/b>, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0435\u0431\u0435\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0435 \u043d\u0430 \u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u0418 \u0432\u0441\u043a\u043e\u0440\u0435 \u044f \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u043b \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0443 <b>STM32F4 Discovery kit for STM32F407<\/b><\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u043e\u0441\u0438\u043b\u0441\u044f \u0441 \u043d\u0435\u0439 \u043f\u043e \u0434\u043e\u043c\u0443 \u0438 \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u0433\u0430\u044e\u0442 LED\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0433\u0438\u0440\u043e\u0441\u043a\u043e\u043f. \u041d\u043e \u043f\u043e\u0440\u0430 \u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0438 \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041f\u043e\u0441\u043b\u0435 30 \u043c\u0438\u043d\u0443\u0442 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u044f \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e 95% \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u043e\u0434 Windows, \u0430 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438 Linux \u0438 Mac OS \u0433\u0443\u043b\u044f\u044e\u0442 \u043b\u0435\u0441\u043e\u043c. \u042f \u043f\u0440\u043e\u0432\u0435\u043b 3 \u0434\u043d\u044f \u043f\u043e \u0432\u0435\u0447\u0435\u0440\u0430\u043c \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0438 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0438\u043c\u0435\u0435\u043c \u043f\u043e\u043b\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 STM32 \u043f\u043e\u0434 Mac OS.<\/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-205028","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205028","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=205028"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205028\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}