{"id":288518,"date":"2018-08-26T14:55:02","date_gmt":"2018-08-26T10:55:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=288518"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2018-08-26T10:55:02","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=288518","title":{"rendered":"\u0411\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043a ESP-32 \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/421291\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a ESP-32 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043b\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u0434\u043b\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0437-\u0437\u0430 \u043c\u043e\u0435\u0439 \u043a\u0440\u0438\u0432\u043e\u0440\u0443\u043a\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043f\u043b\u0430\u0442\u044b-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c JTAG. \u0427\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e \u2014 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"pribory-i-materialy\">\u041f\u0440\u0438\u0431\u043e\u0440\u044b <del>\u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/del><\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u0448\u0430 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0433\u0435\u0440\u043e\u0438\u043d\u044f, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u2014 \u0446\u0435\u043b\u044c \u043e\u0442\u043b\u0430\u0434\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ns\/fa\/sr\/nsfasr1isbpmeuqi3smkmvjr6dc.jpeg\" width=\"200\"\/>  <\/p>\n<p><em>\u041f\u043b\u0430\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0447\u0438\u043f\u0430 ESP-WROOM-32. \u0421\u0441\u044b\u043b\u043a\u0443 \u043d\u0435 \u0434\u0430\u043c, \u0442. \u043a. \u0432 \u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0443\u0436\u0435 \u0432\u0441\u0451 \u0440\u0430\u0441\u043a\u0443\u043f\u0438\u043b\u0438.<\/em><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u2014 \u0441\u0430\u043c\u0430 \u043f\u043b\u0430\u0442\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jk\/fa\/eu\/jkfaeubciptoppkc-eshrdmitz4.jpeg\" width=\"200\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ny\/zz\/u3\/nyzzu3_m8pvpffzb3ynrx3lio1m.jpeg\" width=\"200\"\/>  <\/p>\n<p><em>CJMCU FT232H<\/em><\/p>\n<p>  <\/p>\n<p>\u041d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043b\u0441\u044f \u0438 <a href=\"https:\/\/aliexpress.com\/item\/CJMCU-FT232H-High-Speed-Multifunction-USB-to-JTAG-UART-FIFO-SPI-I2C\/32814913865.html\">\u0437\u0430\u043a\u0430\u0437\u0430\u043b \u043d\u0430 \u0430\u043b\u0438\u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441\u0435<\/a> \u0437\u0430 740,08 \u0440\u0443\u0431. \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 ePacket. \u041f\u043b\u0430\u0442\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441 \u043d\u0435\u043f\u0440\u0438\u043f\u0430\u044f\u043d\u043d\u044b\u043c\u0438 \u043d\u043e\u0433\u0430\u043c\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0440\u0443\u043a\u0443, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432, 6 \u0448\u0442.: \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u0435\u0446 \u043f\u0430\u044f\u0442\u044c, \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043a ESP-32.<\/p>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e USB-\u0443\u0434\u043b\u0438\u043d\u0438\u0442\u0435\u043b\u044c, \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u0443\u0433\u043e\u2026<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0441 (X)Ubuntu 18.04.<\/p>\n<p>  <\/p>\n<h2 id=\"nastroyka\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>  <\/p>\n<h3 id=\"ustanovka-openocd-dlya-esp-32\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenOCD \u0434\u043b\u044f ESP-32<\/h3>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u043e\u043a\u0438 \u0441\u0430\u043c\u043e\u0439 esp-idf:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install make libtool pkg-config autoconf automake texinfo libusb-1.0 libftdi1-2 git git clone --recursive https:\/\/github.com\/espressif\/openocd-esp32.git # \u0418\u043b\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0435\u043b\u0438\u0437 \u0438\u0437 https:\/\/github.com\/espressif\/openocd-esp32\/releases cd openocd-esp32 .\/bootstrap .\/configure # \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e FTDI-based adapters \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b make -j6 sudo make install<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u044f \u0441\u0442\u0430\u0432\u0438\u043b \u044d\u0442\u0443 \u0432\u0435\u0440\u0441\u0438\u044e OpenOCD \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 (<code>sudo make install<\/code>), \u0447\u0442\u043e \u043d\u0435\u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0440\u0430\u0437\u043d\u044b\u0435 OpenOCD \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>  <\/p>\n<h3 id=\"nastroyka-openocd-pod-nas\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OpenOCD \u043f\u043e\u0434 \u043d\u0430\u0441<\/h3>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u0441\u0430\u043c\u043e\u0439 ESP-32. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a:<br \/>  board.cfg:<\/p>\n<p>  <\/p>\n<pre><code>transport select jtag adapter_khz 20000 # \u0421 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f # set ESP32_ONLYCPU 1 # \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u044f\u0434\u0440\u043e # set ESP32_RTOS none # \u0423\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 RTOS source [find target\/esp32.cfg]<\/code><\/pre>\n<p>  <\/p>\n<p>interface.cfg:<\/p>\n<p>  <\/p>\n<pre><code>interface ftdi ftdi_vid_pid 0x0403 0x6014 ftdi_layout_init 0x0c08 0x0f1b<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"pishem-pravilo-udev\">\u041f\u0438\u0448\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e Udev<\/h3>\n<p>  <\/p>\n<p>\u0418\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a USB-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 udev:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">echo 'SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;0403&quot;, ATTR{idProduct}==&quot;6014&quot;, GROUP=&quot;vplugdev, MODE=&quot;0666&quot;' | sudo tee \/etc\/udev\/rules.d\/99-JTAG.rules sudo systemctl restart udev.service sudo udevadm control --reload-rules<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"vspomogatelnyy-skript\">\u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442<\/h3>\n<p>  <\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u0435\u043d \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0440\u043e\u0434\u0435 \u0442\u0430\u043a\u043e\u0433\u043e:<\/p>\n<p>  <\/p>\n<p>openocd_command:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash echo &quot;$@&quot; | telnet localhost 4444<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0434\u0435\u043c\u043e\u043d\u0443 OpenOCD. \u041d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u2014 \u043f\u043e\u0437\u0436\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"podklyuchaem-platu-cjmcu-k-esp-32\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0443 CJMCU \u043a ESP-32<\/h2>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u0438 \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a, \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0438\u043a\u0430\u043a. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430, \u0447\u0442\u043e \u043a \u0447\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438 \u0437\u0430\u0447\u0435\u043c.<\/p>\n<p>  <\/p>\n<table>\n<thead>\n<tr>\n<th>\u041a\u043e\u043d\u0442\u0430\u043a\u0442 CJMCU<\/th>\n<th>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 JTAG<\/th>\n<th>\u041a\u043e\u043d\u0442\u0430\u043a\u0442 ESP-32<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>AD0<\/td>\n<td>TCK<\/td>\n<td>13<\/td>\n<\/tr>\n<tr>\n<td>AD1<\/td>\n<td>TDI<\/td>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>AD2<\/td>\n<td>TDO<\/td>\n<td>15<\/td>\n<\/tr>\n<tr>\n<td>AD3<\/td>\n<td>TMS<\/td>\n<td>14<\/td>\n<\/tr>\n<tr>\n<td>+5V<\/td>\n<td><\/td>\n<td>VIN (\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e!)<\/td>\n<\/tr>\n<tr>\n<td>GND<\/td>\n<td><\/td>\n<td>GND (\u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>  <\/p>\n<h3 id=\"pro-vin\">\u041f\u0440\u043e VIN<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0442\u044f\u043d\u0443\u0442\u044c \u043e\u0442 \u043a\u043e\u043c\u043f\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u043e\u0434 \u043a ESP-32, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c +5V \u043a VIN. \u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 JTAG, \u0447\u0442\u043e, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041e\u0434\u0438\u043d \u043c\u0438\u043d\u0443\u0441 \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u2014 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043b\u043e\u0433 UART, \u043d\u043e \u0418\u041c\u0425\u041e \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043d\u0430\u043f\u0440\u043e\u0447\u044c \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. <\/p>\n<p>  <\/p>\n<p><strong>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c GND \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0441\u0435\u0433\u0434\u0430!<\/strong><\/p>\n<p>  <\/p>\n<h2 id=\"proveryaem-openocd\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c OpenOCD<\/h2>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c OpenOCD \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">openocd -s '\u043a\u0443\u0434\u0430 \u0432\u044b \u043a\u0438\u0434\u0430\u043b\u0438 interface.cfg \u0438 board.cfg'  -f interface.cfg -f board.cfg<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0432\u0430\u043c \u043f\u043e\u043a\u0430\u0436\u0443\u0442 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e:<\/p>\n<p>  <\/p>\n<pre><code>Open On-Chip Debugger 0.10.0-dev (2018-08-22-14:47) Licensed under GNU GPL v2 For bug reports, read         http:\/\/openocd.org\/doc\/doxygen\/bugs.html adapter speed: 20000 kHz esp32 interrupt mask on Info : ftdi: if you experience problems at higher adapter clocks, try the command &quot;ftdi_tdo_sample_edge falling&quot; Info : clock speed 20000 kHz Info : JTAG tap: esp32.cpu0 tap\/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : JTAG tap: esp32.cpu1 tap\/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F). Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F). Info : Detected debug stubs @ 3ffb3134 on core0 of target 'esp32' cpu0: Current bits set: BreakIn BreakOut RunStallIn cpu1: Current bits set: BreakIn BreakOut RunStallIn<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e!<\/p>\n<p>  <\/p>\n<p><strong>\u0412\u0430\u0436\u043d\u043e<\/strong>: \u043f\u0440\u043e\u0446\u0435\u0441\u0441 OpenOCD \u0434\u043e\u043b\u0436\u0435\u043d \u043a\u0440\u0443\u0442\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f, \u043f\u043e\u043a\u0430 \u0432\u044b \u0437\u0430\u043d\u044f\u0442\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u043e\u0439.<\/p>\n<p>  <\/p>\n<h2 id=\"zadeystvuem-eclipse\">\u0417\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c Eclipse<\/h2>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u044b\u0439 \u0440\u044f\u0434 \u0448\u0430\u0433\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/esp-idf.readthedocs.io\/en\/latest\/api-guides\/jtag-debugging\/using-debugger.html#jtag-debugging-using-debugger-eclipse\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0438 \u044f \u0438\u0445 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c.<\/p>\n<p>  <\/p>\n<h3 id=\"sovety-po-otladke-v-eclipse\">\u0421\u043e\u0432\u0435\u0442\u044b \u043f\u043e \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0432 Eclipse<\/h3>\n<p>  <\/p>\n<ol>\n<li>\u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e \u043a\u043d\u043e\u043f\u043a\u0443 EN \u0430\u043a\u0438 reset \u043d\u0430 \u043f\u043b\u0430\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0434\u0435\u043b\u0430\u0439\u0442\u0435 <strong>\u0442\u043e\u043b\u044c\u043a\u043e<\/strong> \u0447\u0435\u0440\u0435\u0437 &quot;Terminate and relaunch&quot;.<\/li>\n<li>\u0414\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <br \/> \n<pre><code class=\"bash\">openocd_command 'program_esp32 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439_\u043f\u0443\u0442\u044c\/\u0444\u0430\u0439\u043b.bin 0x10000 verify'<\/code><\/pre>\n<\/li>\n<li>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u043b\u0438, \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0432\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f. \u041c\u043e\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u0440\u0430\u0442\u043e\u0440\u0438\u0442 \u043a\u0430\u043a \u043d\u0435\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u0437-\u0437\u0430 \u043f\u0440\u0438\u043a\u043e\u043b\u043e\u0432 \u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u043c.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0439 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0416\u0435\u043b\u0430\u044e \u043f\u043b\u043e\u0434\u043e\u0442\u0432\u043e\u0440\u043d\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 (\u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0441\u0442\u043d\u044b, \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0439 \u043e\u043d\u0430 \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442)!<\/p>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \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:\/\/habr.com\/post\/421291\/\"> https:\/\/habr.com\/post\/421291\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/421291\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a ESP-32 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043b\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u0434\u043b\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0437-\u0437\u0430 \u043c\u043e\u0435\u0439 \u043a\u0440\u0438\u0432\u043e\u0440\u0443\u043a\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043f\u043b\u0430\u0442\u044b-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c JTAG. \u0427\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e \u2014 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<\/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-288518","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288518","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=288518"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288518\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}