{"id":475558,"date":"2026-04-11T19:41:02","date_gmt":"2026-04-11T19:41:02","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=475558"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=475558","title":{"rendered":"\u0421\u0430\u043c\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a (MBR)"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8f7\/681\/318\/8f7681318bfe9f82b8410c8a85b59d47.png\" width=\"480\" height=\"270\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/8f7\/681\/318\/8f7681318bfe9f82b8410c8a85b59d47.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8f7\/681\/318\/8f7681318bfe9f82b8410c8a85b59d47.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<blockquote>\n<p>&#187; 3\u043a\u0411 &#8212; \u044d\u0442\u043e \u0436 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e. &#171;<\/p>\n<\/blockquote>\n<p><strong>\u041f\u0440\u043e\u043b\u043e\u0433<\/strong><\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 STM32 \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 Flash \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435. \u042d\u0442\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u043c \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u0432\u043a\u043b\u0438\u043d\u0438\u0442\u044c NVRAM (Non-Volatile Random-Access Memory).<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 NOR FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f STM32F407VE. <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\"><strong>Sector\u00a0<\/strong>  <\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\"><strong>Start Address<\/strong>  <\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>size, kByte<\/strong>  <\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435<\/strong>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0800 0000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">16<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0800 4000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">16<\/p>\n<\/td>\n<td>\n<p align=\"left\">NVRAM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0800 8000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">16<\/p>\n<\/td>\n<td>\n<p align=\"left\">NVRAM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0800 C000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">16<\/p>\n<\/td>\n<td>\n<p align=\"left\">NVRAM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">4<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0801 0000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">64<\/p>\n<\/td>\n<td>\n<p align=\"left\">Generic \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">5<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0802 0000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">Generic \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">6<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0804 0000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">Generic \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"87\" width=\"87\">\n<p align=\"left\">7<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0x0806 0000  <\/p>\n<\/td>\n<td>\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a  <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0434\u0440\u0435\u0441 \u0432 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (0x0806_0000). \u0422\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e MBR (Master Boot record). <\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 STM32 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 FLASH \u043f\u0430\u043c\u044f\u0442\u0438: <strong>0x0800_0000<\/strong>. \u0412\u0441\u0451, \u0447\u0442\u043e \u043f\u043e-\u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0442 mbr &#8212; \u044d\u0442\u043e \u043f\u0440\u044b\u0433\u043d\u0443\u0442\u044c \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0430 \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043c\u0435\u043d\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0441\u0435\u043a\u0442\u043e\u0440\u0435 flash \u043f\u0430\u043c\u044f\u0442\u0438 (0x0806_0000). \u042d\u0442\u043e \u0442\u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 128k Byte. \u041f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e. \u041d\u0430\u0434\u043e \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432\u0430\u043b\u0438\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439. \u0418\u043d\u0430\u0447\u0435 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u043c! \u0415\u0441\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0442\u043e \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u0435\u043c \u0442\u0443\u0434\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0440\u0443\u0442\u0438\u043c\u0441\u044f \u0432 \u0441\u0443\u043f\u0435\u0440\u0446\u0438\u043a\u043b\u0435 \u0438 \u0434\u0430\u0435\u043c \u043d\u0430 LED\u044b \u043a\u0430\u043a\u0443\u044e-\u043d \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435. \u0415\u0441\u043b\u0438 \u0431\u044b \u0432\u0441\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u044b FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u0431\u044b\u043b\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u043a\u0430\u043a \u0443 \u0432\u0441\u0435\u0445 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e 8kByte, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c mbr. \u041c\u044b \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0x08000000 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.  <\/p>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438:<\/strong><\/p>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\u0438 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 STM32F407VE \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 (\u0434\u043b\u044f <a href=\"https:\/\/habr.com\/ru\/articles\/988494\/\" rel=\"noopener noreferrer nofollow\">\u043f\u043b\u0430\u0442\u044b JZ-F407VET6<\/a>), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 <strong>0x0800_0000 <\/strong>\u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u044b\u0433\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <strong>0x0806_0000<\/strong>. \u041f\u0435\u0440\u0435\u0434 \u043f\u0440\u044b\u0436\u043a\u043e\u043c \u0432 \u043d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 0x0806_0000 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439. \u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0443 \u0441\u0442\u0435\u043a\u0430 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 RAM \u043f\u0430\u043c\u044f\u0442\u0438, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441 ResetHandler \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c Flash \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0441\u0430\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Thumb. \u0415\u0441\u043b\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x0806_0000 \u043d\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u0442\u043e \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u0442\u0443\u0434\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0438\u0433\u0430\u0442\u044c LED\u043e\u043c \u043d\u0430 \u043f\u0438\u043d\u0435 PE13 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 10 Hz \u0438 \u0441\u043a\u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u044e 50%. <\/p>\n<p>\u041f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u0443\u0442\u0440\u0430\u043c\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u0435\u0435 <strong>\u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e<\/strong>! \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, SysTick, PLL \u0434\u0430\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e. \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u043c\u0435\u0442\u043a\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u0440\u0430\u0442\u044c \u043e\u0442 \u044f\u0434\u0435\u0440\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 DWT. <br \/>\u041c\u043e\u0436\u043d\u043e \u0432\u0435\u0441\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043b\u0438\u0448\u044c \u0444\u0430\u0439\u043b\u0435  main.c. <br \/>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b startup_stm32f407xx.S, system_stm32f4xx.c, STM32F407VETx_FLASH.ld.<br \/>\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c ARM-GCC \u0438\u0437 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e GNU Make \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<p>\u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 MBR \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u0433\u043e \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0433\u0434\u0435-\u0442\u043e \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0432 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<p><strong>\u0417\u0430\u0447\u0435\u043c \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430?<\/strong><\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c:<\/p>\n<blockquote>\n<p>\u0417\u0430\u0447\u0435\u043c \u0432 2026 \u0433\u043e\u0434\u0443 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438?<\/p>\n<\/blockquote>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043d\u043e\u0433\u043e. \u0412\u043e\u0442 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 STM32F407VET6 \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043e <strong>512 kByte Flash<\/strong> \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c. \u0423\u0442\u0440\u0430\u043c\u0431\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043f\u043e \u043c\u043e\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432\u043e\u043e\u0431\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0443\u0436\u0435 \u0440\u0435\u0434\u043a\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 STM32 &#8212; \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0437\u0430 MBR \u0441\u043b\u0435\u0434\u0443\u0435\u0442 NVRAM. \u0418 \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u0430\u0439\u0442 \u0432\u044b\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0448\u0435\u0439 on-chip NVRAM. \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u043b\u0430.<\/p>\n<p><strong>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><br \/>\u041f\u0440\u0438 \u043d\u0430\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c  25192 bytes. \u0414\u0430\u043b\u0435\u0435 \u044f \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u043b \u0435\u0449\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u043b\u043b\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043c\u0435\u0440\u044b \u0438 \u0434\u043e\u0432\u0435\u043b \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0434\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 9684. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0443\u0436\u0435 \u0438 \u043d\u0435 \u044f\u0441\u043d\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u043a deepseek.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"390\" width=\"390\">\n<p align=\"left\"><strong>\u0412\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0440\u0430\u0437\u043c\u0435\u0440 bin \u0444\u0430\u0439\u043b\u0430, <\/strong>byte<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"390\" width=\"390\">\n<p align=\"left\">\u041d\u0430\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 STM32 HAL<\/p>\n<\/td>\n<td>\n<p align=\"left\">25192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"390\" width=\"390\">\n<p align=\"left\">\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b -g3  -O0<\/p>\n<\/td>\n<td>\n<p align=\"left\">12052 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"390\" width=\"390\">\n<p align=\"left\">\u0421\u043e\u0431\u0440\u0430\u043d\u0430 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 -Os -flto<\/p>\n<\/td>\n<td>\n<p align=\"left\">9684 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"390\" width=\"390\">\n<p align=\"left\">\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b DeepSeek (c \u0444\u043b\u0430\u0433\u0430\u043c\u0438 -O0 -g3)<\/p>\n<\/td>\n<td>\n<p align=\"left\">2360 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"390\" width=\"390\">\n<p align=\"left\">\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b DeepSeek (c \u0444\u043b\u0430\u0433\u0430\u043c\u0438 -Os -flto)<\/p>\n<\/td>\n<td>\n<p align=\"left\">2124<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0432\u043e\u0442 \u0447\u0442\u043e \u043c\u043d\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b DeepSeek<\/p>\n<pre><code class=\"cpp\">\/\/ main.c - Bootloader for STM32F407VE\/\/ Jumps to 0x080E0000 after validating vector table#include &lt;stdint.h&gt;\/\/ Memory addresses#define APP_BASE        0x08060000UL#define SRAM_BASE       0x20000000UL#define SRAM_END        0x2001FFFFUL  \/\/ 128KB for STM32F407VE#define FLASH_BASE      0x08000000UL#define FLASH_END       0x080FFFFFUL  \/\/ 1MB\/\/ Peripherals#define RCC_BASE        0x40023800UL#define GPIOE_BASE      0x40021000UL#define DWT_BASE        0xE0001000UL#define CoreDebug_BASE      (0xE000EDF0UL)#define CoreDebug_DEMCR_TRCENA_Pos         24U                                            \/*!&lt; CoreDebug DEMCR: TRCENA Position *\/#define CoreDebug_DEMCR_TRCENA_Msk         (1UL &lt;&lt; CoreDebug_DEMCR_TRCENA_Pos)typedef struct {  volatile uint32_t DHCSR;                  \/*!&lt; Offset: 0x000 (R\/W)  Debug Halting Control and Status Register *\/  volatile uint32_t DCRSR;                  \/*!&lt; Offset: 0x004 ( \/W)  Debug Core Register Selector Register *\/  volatile uint32_t DCRDR;                  \/*!&lt; Offset: 0x008 (R\/W)  Debug Core Register Data Register *\/  volatile uint32_t DEMCR;                  \/*!&lt; Offset: 0x00C (R\/W)  Debug Exception and Monitor Control Register *\/} CoreDebug_Type;#define CoreDebug           ((CoreDebug_Type *)     CoreDebug_BASE)\/\/ Register offsets#define RCC_AHB1ENR     (*((volatile uint32_t*)(RCC_BASE + 0x30)))#define GPIOx_MODER     (*((volatile uint32_t*)(GPIOE_BASE + 0x00)))#define GPIOx_ODR       (*((volatile uint32_t*)(GPIOE_BASE + 0x14)))#define DWT_CYCCNT      (*((volatile uint32_t*)(DWT_BASE + 0x04)))#define DWT_CTRL        (*((volatile uint32_t*)(DWT_BASE + 0x00)))\/\/ Vector table entry typetypedef struct {    uint32_t stack_ptr;    uint32_t reset_handler;} VectorTable_t;\/\/ Check if address is in SRAM rangestatic inline int is_valid_sram(uint32_t addr) {    return (( SRAM_BASE &lt;= addr) &amp;&amp; (addr &lt;= SRAM_END));}\/\/ Check if address is in Flash rangestatic inline int is_valid_flash(uint32_t addr) {    return ((FLASH_BASE &lt;= addr) &amp;&amp; (addr &lt;= FLASH_END));}\/\/ Initialize DWT cycle counterstatic void dwt_init(void) {    \/\/ Enable DWT in debug component (optional)    CoreDebug-&gt;DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; \/\/ set bit 24    DWT_CTRL |= 1;}\/\/ Delay using DWT (approximate for 168MHz)static void delay_ms(uint32_t ms) {    uint32_t start = DWT_CYCCNT;    uint32_t cycles = ms * 16000;  \/\/ 16MHz * 0.001    while ((DWT_CYCCNT - start) &lt; cycles);}\/\/ Blink LED on PE13 at 10Hzstatic void blink_led(void) __attribute__((noreturn));static void blink_led(void) {    \/\/ Enable GPIOE clock    RCC_AHB1ENR |= (1 &lt;&lt; 4);        \/\/ Configure PE13 as output    GPIOx_MODER &amp;= ~(3 &lt;&lt; 26);    GPIOx_MODER |= (1 &lt;&lt; 26);        dwt_init();        while(1) {        GPIOx_ODR |= (1 &lt;&lt; 13);   \/\/ High        delay_ms(50);        GPIOx_ODR &amp;= ~(1 &lt;&lt; 13);  \/\/ Low        delay_ms(50);    }}static int32_t is_valid_vector_table(const VectorTable_t * const app_vec){    int32_t res = 1 ;    \/\/ Validate stack pointer    if (!is_valid_sram(app_vec-&gt;stack_ptr)) {        res = 0 ;    }    \/\/ Validate reset handler address    uint32_t reset_addr = app_vec-&gt;reset_handler;    if (!is_valid_flash(reset_addr &amp; ~1)) {        res = 0 ;    }    \/\/ Check Thumb mode bit    if ((reset_addr &amp; 1) == 0) {        res = 0 ;    }    return res;}typedef void (*pFunction)(void);pFunction Jump_To_Code = 0; \/*Must not be in stack*\/\/\/ Main function - called from startup codeint main(void) {    const VectorTable_t *app_vec = (const VectorTable_t*) APP_BASE;    int32_t res = is_valid_vector_table(app_vec);    if (res) {        uint32_t reset_addr = app_vec-&gt;reset_handler;        Jump_To_Code = (pFunction)reset_addr;        \/\/ Jump to application        Jump_To_Code();    }    blink_led();    \/\/ Should never reach here    while (1) {    };}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n<pre><code class=\"bash\">include config.mkTARGET = jz_f407vet6_mbr_light_gcc_mMCU = cortex-m4FPU = fpv4-sp-d16FLOAT_ABI = softfpCC = arm-none-eabi-gccOBJCOPY = arm-none-eabi-objcopySIZE = arm-none-eabi-sizeCFLAGS += -mcpu=$(MCU) CFLAGS += -mthumb CFLAGS += -mfpu=$(FPU) CFLAGS += -mfloat-abi=$(FLOAT_ABI)ifeq ($(DEBUG),Y)    CFLAGS += -O0    CFLAGS += -g3 endififeq ($(PACK_PROGRAM),Y)    # $(error PACK_PROGRAM=$(PACK_PROGRAM))    CFLAGS += -Os    #When compiling with -flto, no callgraph information is output along with    #the object file.    #This option runs the standard link-time optimizer.    #When invoked with source code, it generates GIMPLE (one of GCCs internal representations) and writes    #it to special ELF sections in the object file.    # When the object files are linked together, all the function bodies are read     # from these ELF sections and instantiated as if they had been part of the same translation unit.    COMPILE_GCC_OPT += -fltoendifCFLAGS += -ffunction-sectionsCFLAGS += -fdata-sections CFLAGS += -nostdlib CFLAGS += -nostartfilesCFLAGS += -fno-builtin CFLAGS += -ffreestanding CFLAGS += -fno-exceptions CFLAGS += -fno-rttiCFLAGS += -Wl,-gc-sections -Wl,-sCFLAGS += -DSTM32F407xx CFLAGS += -DUSE_STDPERIPH_DRIVER# \u0420\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u043a\u043e\u0434 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 Flash (0x08000000)LDFLAGS += -mcpu=$(MCU) LDFLAGS += -mthumb LDFLAGS += -mfpu=$(FPU) LDFLAGS += -mfloat-abi=$(FLOAT_ABI)LDFLAGS += -T gcc_arm_mbr.ldLDFLAGS += -Wl,--print-memory-usage LDFLAGS += -Wl,--gc-sectionsLDFLAGS += -Wl,--cref LDFLAGS += -Wl,-Map=$(TARGET).mapSOURCES += main.cSOURCES += system_stm32f4xx.cOBJECTS += $(SOURCES:.c=.o)OBJECTS += startup_stm32f407xx.oall: $(TARGET).bin $(TARGET).hex $(TARGET).elf$(STARTUP): startup_stm32f407xx.S$(CC) $(CFLAGS) -c $&lt; -o $@%.o: %.c$(CC) $(CFLAGS) -c $&lt; -o $@$(TARGET).elf: $(OBJECTS)$(CC) $(LDFLAGS) $^ -o $@$(SIZE) $@%.bin: %.elf$(OBJCOPY) -O binary $&lt; $@%.hex: %.elf$(OBJCOPY) -O ihex $&lt; $@clean:rm -f $(OBJECTS) $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).map.PHONY: all clean  <\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u043e\u0433 \u0441\u0431\u043e\u0440\u043a\u0438 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0442\u043e\u0436\u0435 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439<\/p>\n<pre><code class=\"bash\">21:46:09 **** Build of configuration Release for project jz_f407vet6_mbr_light_gcc_m ****build_from_make.bat rm -f main.o system_stm32f4xx.o startup_stm32f407xx.o jz_f407vet6_mbr_light_gcc_m.elf jz_f407vet6_mbr_light_gcc_m.bin jz_f407vet6_mbr_light_gcc_m.hex jz_f407vet6_mbr_light_gcc_m.maparm-none-eabi-gcc -mcpu=cortex-m4  -mthumb  -mfpu=fpv4-sp-d16  -mfloat-abi=softfp -Os -ffunction-sections -fdata-sections  -nostdlib  -nostartfiles -fno-builtin  -ffreestanding  -fno-exceptions  -fno-rtti -Wl,-gc-sections -Wl,-s -DSTM32F407xx  -DUSE_STDPERIPH_DRIVER -c main.c -o main.occ1.exe: warning: command-line option '-fno-rtti' is valid for C++\/D\/ObjC++ but not for Carm-none-eabi-gcc -mcpu=cortex-m4  -mthumb  -mfpu=fpv4-sp-d16  -mfloat-abi=softfp -Os -ffunction-sections -fdata-sections  -nostdlib  -nostartfiles -fno-builtin  -ffreestanding  -fno-exceptions  -fno-rtti -Wl,-gc-sections -Wl,-s -DSTM32F407xx  -DUSE_STDPERIPH_DRIVER -c system_stm32f4xx.c -o system_stm32f4xx.occ1.exe: warning: command-line option '-fno-rtti' is valid for C++\/D\/ObjC++ but not for Carm-none-eabi-gcc    -c -o startup_stm32f407xx.o startup_stm32f407xx.Sarm-none-eabi-gcc -mcpu=cortex-m4  -mthumb  -mfpu=fpv4-sp-d16  -mfloat-abi=softfp -T gcc_arm_mbr.ld -Wl,--print-memory-usage  -Wl,--gc-sections -Wl,--cref  -Wl,-Map=jz_f407vet6_mbr_light_gcc_m.map main.o system_stm32f4xx.o startup_stm32f407xx.o -o jz_f407vet6_mbr_light_gcc_m.elfMemory region         Used Size  Region Size  %age Used             RAM:       17488 B       128 KB     13.34%          CCMRAM:          0 GB        64 KB      0.00%           FLASH:        2124 B         3 KB     69.14%arm-none-eabi-size jz_f407vet6_mbr_light_gcc_m.elf   text   data    bss    dec    hexfilename   1044   1080  16420  18544   4870jz_f407vet6_mbr_light_gcc_m.elfarm-none-eabi-objcopy -O binary jz_f407vet6_mbr_light_gcc_m.elf jz_f407vet6_mbr_light_gcc_m.binarm-none-eabi-objcopy -O ihex jz_f407vet6_mbr_light_gcc_m.elf jz_f407vet6_mbr_light_gcc_m.hex21:46:10 Build Finished. 0 errors, 0 warnings. (took 1s.99ms)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c?<\/strong><br \/>++\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 MBR \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f assembler.<br \/>++\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u0443\u0441\u0442\u044b\u0445 \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439<br \/>++\u0410\u0434\u0440\u0435\u0441 \u043f\u0440\u044b\u0436\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <strong>TunerPro<\/strong>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u043f\u043e \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443. \u041f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u043e\u0439 MBR \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0446\u0435\u043b\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u043f\u043e\u043f\u0430\u0442\u0447\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u044c \u0438 \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0435\u0433\u043e. \u0422\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c MBR \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0431\u0435\u0437 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438 \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u044f \u0435\u0451 \u0440\u0430\u0437\u043c\u0435\u0440\u0430.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong><br \/>\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f ARM Cortex-M4 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 2124 Byte!  <a href=\"https:\/\/github.com\/aabzel\/trunk\/tree\/main\/source\/projects\/jz_f407vet6_mbr_light_gcc_m\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0442\u0443\u0442<\/a>. \u041a\u043e\u0433\u0434\u0430 \u044f  \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u043f\u0440\u0438\u044f\u0442\u0435\u043b\u044e, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0443\u043c\u0435\u0441\u0442\u0438\u043b\u0441\u044f \u0432 3kByte, \u043e\u043d \u043c\u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b.<\/p>\n<blockquote>\n<p>&#187; 3\u043a\u0411 &#8212; \u044d\u0442\u043e \u0436 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e. &#171;<\/p>\n<\/blockquote>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0441\u0440\u043e\u0434\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0443\u043f\u0435\u043d\u0447\u0430\u0442\u044b\u0445 \u0440\u0430\u043a\u0435\u0442. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u0437\u0430\u0442\u0435\u043c \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u0437\u0430\u0442\u0435\u043c, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, Generic \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0430 \u043e\u0440\u0431\u0438\u0442\u044b \u0441\u0442\u0443\u0442\u043d\u0438\u043a\u0430 \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0443\u043f\u0435\u043d\u0447\u0442\u043e\u0439 \u0440\u0430\u043a\u0435\u0442\u043e\u0439.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0412\u0430\u043c \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u0443\u0442\u0440\u0430\u043c\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 MBR \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0435\u0449\u0451 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c 2124 \u0431\u0430\u0439\u0442, \u0442\u043e \u043f\u0440\u0438\u0448\u043b\u0438\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0441\u0432\u043e\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438<\/strong> <\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>URL<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0422\u0438\u043f\u043e\u0432\u0430\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 STM32F4<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/1001268\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/1001268\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 jz_f407vet6_mbr_light_gcc_m<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aabzel\/trunk\/tree\/main\/source\/projects\/jz_f407vet6_mbr_light_gcc_m\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/aabzel\/trunk\/tree\/main\/source\/projects\/jz_f407vet6_mbr_light_gcc_m<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aabzel\/Artifacts\/tree\/main\/jz_f407vet6_mbr_light_gcc_m\" rel=\"noopener noreferrer nofollow\">\u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b jz_f407vet6_mbr_light_gcc_m<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aabzel\/Artifacts\/tree\/main\/jz_f407vet6_mbr_light_gcc_m\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/aabzel\/Artifacts\/tree\/main\/jz_f407vet6_mbr_light_gcc_m<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">STM32. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438\u00a0<a href=\"https:\/\/habr.com\/users\/andreyzaostrovnykh\" rel=\"noopener noreferrer nofollow\">@andreyzaostrovnykh<\/a>  <\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/companies\/timeweb\/articles\/793152\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/companies\/timeweb\/articles\/793152\/<\/a>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0425\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0417\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/754216\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/754216\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">NVRAM \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/706972\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/706972\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0431\u0437\u043e\u0440 \u0443\u0442\u0438\u043b\u0438\u0442\u044b TunerPro (\u0438\u043b\u0438 const volatile)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/965828\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/965828\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0443\u0441\u043a DWT \u0422\u0430\u0439\u043c\u0435\u0440\u0430 \u043d\u0430 ARM Cortex-M (\u0438\u043b\u0438 \u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0422\u0430\u0439\u043c\u0435\u0440)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/1005622\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/1005622\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0431\u0437\u043e\u0440 \u0443\u0447\u0435\u0431\u043d\u043e-\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u044b JZ-F407VET6<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/988494\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/988494\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0420\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u043f\u043e \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/966862\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/966862\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430 <a class=\"mention\" href=\"\/users\/tasman\">@tasman<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/27055\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/27055\/<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/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:\/\/habr.com\/ru\/articles\/1022264\/\">https:\/\/habr.com\/ru\/articles\/1022264\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#187; 3\u043a\u0411 &#8212; \u044d\u0442\u043e \u0436 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e. &#171;\u041f\u0440\u043e\u043b\u043e\u0433\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 STM32 \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 Flash \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435. \u042d\u0442\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u043c \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u0432\u043a\u043b\u0438\u043d\u0438\u0442\u044c NVRAM (Non-Volatile Random-Access Memory).\u041f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 NOR FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f STM32F407VE. Sector\u00a0  Start Address  size, kByte  \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435  00&#215;0800 0000  16\u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a10&#215;0800 4000  16NVRAM20x0800 8000  16NVRAM30x0800 C000  16NVRAM40x0801 0000  64Generic \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430  50&#215;0802 0000  128Generic \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430  60&#215;0804 0000  128Generic \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430  70&#215;0806 0000  128\u0412\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0434\u0440\u0435\u0441 \u0432 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (0x0806_0000). \u0422\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e MBR (Master Boot record). \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 STM32 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 FLASH \u043f\u0430\u043c\u044f\u0442\u0438: 0x0800_0000. \u0412\u0441\u0451, \u0447\u0442\u043e \u043f\u043e-\u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0442 mbr &#8212; \u044d\u0442\u043e \u043f\u0440\u044b\u0433\u043d\u0443\u0442\u044c \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0430 \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043c\u0435\u043d\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0441\u0435\u043a\u0442\u043e\u0440\u0435 flash \u043f\u0430\u043c\u044f\u0442\u0438 (0x0806_0000). \u042d\u0442\u043e \u0442\u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 128k Byte. \u041f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e. \u041d\u0430\u0434\u043e \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432\u0430\u043b\u0438\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439. \u0418\u043d\u0430\u0447\u0435 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u043c! \u0415\u0441\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0442\u043e \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u0435\u043c \u0442\u0443\u0434\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0440\u0443\u0442\u0438\u043c\u0441\u044f \u0432 \u0441\u0443\u043f\u0435\u0440\u0446\u0438\u043a\u043b\u0435 \u0438 \u0434\u0430\u0435\u043c \u043d\u0430 LED\u044b \u043a\u0430\u043a\u0443\u044e-\u043d \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435. \u0415\u0441\u043b\u0438 \u0431\u044b \u0432\u0441\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u044b FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u0431\u044b\u043b\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u043a\u0430\u043a \u0443 \u0432\u0441\u0435\u0445 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e 8kByte, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c mbr. \u041c\u044b \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0x08000000 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.  \u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438:\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\u0438 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 STM32F407VE \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 (\u0434\u043b\u044f \u043f\u043b\u0430\u0442\u044b JZ-F407VET6), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 0x0800_0000 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u044b\u0433\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x0806_0000. \u041f\u0435\u0440\u0435\u0434 \u043f\u0440\u044b\u0436\u043a\u043e\u043c \u0432 \u043d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 0x0806_0000 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439. \u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0443 \u0441\u0442\u0435\u043a\u0430 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 RAM \u043f\u0430\u043c\u044f\u0442\u0438, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441 ResetHandler \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c Flash \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0441\u0430\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Thumb. \u0415\u0441\u043b\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x0806_0000 \u043d\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u0442\u043e \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u0442\u0443\u0434\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0438\u0433\u0430\u0442\u044c LED\u043e\u043c \u043d\u0430 \u043f\u0438\u043d\u0435 PE13 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 10 Hz \u0438 \u0441\u043a\u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u044e 50%. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u0443\u0442\u0440\u0430\u043c\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e! \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, SysTick, PLL \u0434\u0430\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e. \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u043c\u0435\u0442\u043a\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u0440\u0430\u0442\u044c \u043e\u0442 \u044f\u0434\u0435\u0440\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 DWT. \u041c\u043e\u0436\u043d\u043e \u0432\u0435\u0441\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043b\u0438\u0448\u044c \u0444\u0430\u0439\u043b\u0435  main.c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b startup_stm32f407xx.S, system_stm32f4xx.c, STM32F407VETx_FLASH.ld.\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c ARM-GCC \u0438\u0437 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e GNU Make \u0441\u043a\u0440\u0438\u043f\u0442\u0430.\u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 MBR \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u0433\u043e \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0433\u0434\u0435-\u0442\u043e \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0432 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.\u0417\u0430\u0447\u0435\u043c \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430?\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c:\u0417\u0430\u0447\u0435\u043c \u0432 2026 \u0433\u043e\u0434\u0443 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438?\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043d\u043e\u0433\u043e. \u0412\u043e\u0442 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 STM32F407VET6 \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043e 512 kByte Flash \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c. \u0423\u0442\u0440\u0430\u043c\u0431\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043f\u043e \u043c\u043e\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432\u043e\u043e\u0431\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0443\u0436\u0435 \u0440\u0435\u0434\u043a\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 STM32 &#8212; \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0437\u0430 MBR \u0441\u043b\u0435\u0434\u0443\u0435\u0442 NVRAM. \u0418 \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u0430\u0439\u0442 \u0432\u044b\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0448\u0435\u0439 on-chip NVRAM. \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u043b\u0430.\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u041f\u0440\u0438 \u043d\u0430\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c  25192 bytes. \u0414\u0430\u043b\u0435\u0435 \u044f \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u043b \u0435\u0449\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u043b\u043b\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043c\u0435\u0440\u044b \u0438 \u0434\u043e\u0432\u0435\u043b \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0434\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 9684. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0443\u0436\u0435 \u0438 \u043d\u0435 \u044f\u0441\u043d\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u043a deepseek.\u0412\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438\u0440\u0430\u0437\u043c\u0435\u0440 bin \u0444\u0430\u0439\u043b\u0430, byte\u041d\u0430\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 STM32 HAL25192\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b -g3  -O012052 \u0421\u043e\u0431\u0440\u0430\u043d\u0430 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 -Os -flto9684 \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b DeepSeek (c \u0444\u043b\u0430\u0433\u0430\u043c\u0438 -O0 -g3)2360 \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b DeepSeek (c \u0444\u043b\u0430\u0433\u0430\u043c\u0438 -Os -flto)2124\u0432\u043e\u0442 \u0447\u0442\u043e \u043c\u043d\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b DeepSeek\/\/ main.c &#8212; Bootloader for STM32F407VE\/\/ Jumps to 0x080E0000 after validating vector table#include &lt;stdint.h&gt;\/\/ Memory addresses#define APP_BASE        0x08060000UL#define SRAM_BASE       0x20000000UL#define SRAM_END        0x2001FFFFUL  \/\/ 128KB for STM32F407VE#define FLASH_BASE      0x08000000UL#define FLASH_END       0x080FFFFFUL  \/\/ 1MB\/\/ Peripherals#define RCC_BASE        0x40023800UL#define GPIOE_BASE      0x40021000UL#define DWT_BASE        0xE0001000UL#define CoreDebug_BASE      (0xE000EDF0UL)#define CoreDebug_DEMCR_TRCENA_Pos         24U                                            \/*!&lt; CoreDebug DEMCR: TRCENA Position *\/#define CoreDebug_DEMCR_TRCENA_Msk         (1UL &lt;&lt; CoreDebug_DEMCR_TRCENA_Pos)typedef struct {  volatile uint32_t DHCSR;                  \/*!&lt; Offset: 0x000 (R\/W)  Debug Halting Control and Status Register *\/  volatile uint32_t DCRSR;                  \/*!&lt; Offset: 0x004 ( \/W)  Debug Core Register Selector Register *\/  volatile uint32_t DCRDR;                  \/*!&lt; Offset: 0x008 (R\/W)  Debug Core Register Data Register *\/  volatile uint32_t DEMCR;                  \/*!&lt; Offset: 0x00C (R\/W)  Debug Exception and Monitor Control Register *\/} CoreDebug_Type;#define CoreDebug           ((CoreDebug_Type *)     CoreDebug_BASE)\/\/ Register offsets#define RCC_AHB1ENR     (*((volatile uint32_t*)(RCC_BASE + 0x30)))#define GPIOx_MODER     (*((volatile uint32_t*)(GPIOE_BASE + 0x00)))#define GPIOx_ODR       (*((volatile uint32_t*)(GPIOE_BASE + 0x14)))#define DWT_CYCCNT      (*((volatile uint32_t*)(DWT_BASE + 0x04)))#define DWT_CTRL        (*((volatile uint32_t*)(DWT_BASE + 0x00)))\/\/ Vector table entry typetypedef struct {    uint32_t stack_ptr;    uint32_t reset_handler;} VectorTable_t;\/\/ Check if address is in SRAM rangestatic inline int is_valid_sram(uint32_t addr) {    return (( SRAM_BASE &lt;= addr) &amp;&amp; (addr &lt;= SRAM_END));}\/\/ Check if address is in Flash rangestatic inline int is_valid_flash(uint32_t addr) {    return ((FLASH_BASE &lt;= addr) &amp;&amp; (addr &lt;= FLASH_END));}\/\/ Initialize DWT cycle counterstatic void dwt_init(void) {    \/\/ Enable DWT in debug component (optional)    CoreDebug-&gt;DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; \/\/ set bit 24    DWT_CTRL |= 1;}\/\/ Delay using DWT (approximate for 168MHz)static void delay_ms(uint32_t ms) {    uint32_t start = DWT_CYCCNT;    uint32_t cycles = ms * 16000;  \/\/ 16MHz * 0.001    while ((DWT_CYCCNT &#8212; start) &lt; cycles);}\/\/ Blink LED on PE13 at 10Hzstatic void blink_led(void) __attribute__((noreturn));static void blink_led(void) {    \/\/ Enable GPIOE clock    RCC_AHB1ENR |= (1 &lt;&lt; 4);        \/\/ Configure PE13 as output    GPIOx_MODER &amp;= ~(3 &lt;&lt; 26);    GPIOx_MODER |= (1 &lt;&lt; 26);        dwt_init();        while(1) {        GPIOx_ODR |= (1 &lt;&lt; 13);   \/\/ High        delay_ms(50);        GPIOx_ODR &amp;= ~(1 &lt;&lt; 13);  \/\/ Low        delay_ms(50);    }}static int32_t is_valid_vector_table(const VectorTable_t * const app_vec){    int32_t res = 1 ;    \/\/ Validate stack pointer    if (!is_valid_sram(app_vec-&gt;stack_ptr)) {        res = 0 ;    }    \/\/ Validate reset handler address    uint32_t reset_addr = app_vec-&gt;reset_handler;    if (!is_valid_flash(reset_addr &amp; ~1)) {        res = 0 ;    }    \/\/ Check Thumb mode bit    if ((reset_addr &amp; 1) == 0) {        res = 0 ;    }    return res;}typedef void (*pFunction)(void);pFunction Jump_To_Code = 0; \/*Must not be in stack*\/\/\/ Main function &#8212; called from startup codeint main(void) {    const VectorTable_t *app_vec = (const VectorTable_t*) APP_BASE;    int32_t res = is_valid_vector_table(app_vec);    if (res) {        uint32_t reset_addr = app_vec-&gt;reset_handler;        Jump_To_Code = (pFunction)reset_addr;        \/\/ Jump to application        Jump_To_Code();    }    blink_led();    \/\/ Should never reach here    while (1) {    };}\u042d\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044binclude config.mkTARGET = jz_f407vet6_mbr_light_gcc_mMCU = cortex-m4FPU = fpv4-sp-d16FLOAT_ABI = softfpCC = arm-none-eabi-gccOBJCOPY = arm-none-eabi-objcopySIZE = arm-none-eabi-sizeCFLAGS += -mcpu=$(MCU) CFLAGS += -mthumb CFLAGS += -mfpu=$(FPU) CFLAGS += -mfloat-abi=$(FLOAT_ABI)ifeq ($(DEBUG),Y)    CFLAGS += -O0    CFLAGS += -g3 endififeq ($(PACK_PROGRAM),Y)    # $(error PACK_PROGRAM=$(PACK_PROGRAM))    CFLAGS += -Os    #When compiling with -flto, no callgraph information is output along with    #the object file.    #This option runs the standard link-time optimizer.    #When invoked with source code, it generates GIMPLE (one of GCCs internal representations) and writes    #it to special ELF sections in the object file.    # When the object files are linked together, all the function bodies are read     # from these ELF sections and instantiated as if they had been part of the same translation unit.    COMPILE_GCC_OPT += -fltoendifCFLAGS += -ffunction-sectionsCFLAGS += -fdata-sections CFLAGS += -nostdlib CFLAGS += -nostartfilesCFLAGS += -fno-builtin CFLAGS += -ffreestanding CFLAGS += -fno-exceptions CFLAGS += -fno-rttiCFLAGS += -Wl,-gc-sections -Wl,-sCFLAGS += -DSTM32F407xx CFLAGS += -DUSE_STDPERIPH_DRIVER# \u0420\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u043a\u043e\u0434 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 Flash (0x08000000)LDFLAGS += -mcpu=$(MCU) LDFLAGS += -mthumb LDFLAGS += -mfpu=$(FPU) LDFLAGS += -mfloat-abi=$(FLOAT_ABI)LDFLAGS += -T gcc_arm_mbr.ldLDFLAGS += -Wl,&#8212;print-memory-usage LDFLAGS += -Wl,&#8212;gc-sectionsLDFLAGS += -Wl,&#8212;cref LDFLAGS += -Wl,-Map=$(TARGET).mapSOURCES += main.cSOURCES += system_stm32f4xx.cOBJECTS += $(SOURCES:.c=.o)OBJECTS += startup_stm32f407xx.oall: $(TARGET).bin $(TARGET).hex $(TARGET).elf$(STARTUP): startup_stm32f407xx.S$(CC) $(CFLAGS) -c $&lt; -o $@%.o: %.c$(CC) $(CFLAGS) -c $&lt; -o $@$(TARGET).elf: $(OBJECTS)$(CC) $(LDFLAGS) $^ -o $@$(SIZE) $@%.bin: %.elf$(OBJCOPY) -O binary $&lt; $@%.hex: %.elf$(OBJCOPY) -O ihex $&lt; $@clean:rm -f $(OBJECTS)&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-475558","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/475558","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=475558"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/475558\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}