{"id":473525,"date":"2025-09-02T16:47:22","date_gmt":"2025-09-02T16:47:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=473525"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=473525","title":{"rendered":"<span>ARM Cortex-M: \u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 RAM \u043f\u0430\u043c\u044f\u0442\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/616\/16b\/9b9\/61616b9b902b5b89b1352c68917de8d4.png\" width=\"745\" height=\"439\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/616\/16b\/9b9\/61616b9b902b5b89b1352c68917de8d4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/616\/16b\/9b9\/61616b9b902b5b89b1352c68917de8d4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043e\u0431\u044b\u0447\u043d\u043e \u043a\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u0437 on-chip NOR flash \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u0430&#8230; \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u043d\u0430 \u0434\u043b\u044f \u043a\u043e\u0434\u0430 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u043d\u0430 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 (\u0413\u0430\u0440\u0432\u0430\u0440\u0434\u0441\u043a\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430). \u041e\u0434\u043d\u0430\u043a\u043e \u0438\u043d\u043e\u0439 \u0440\u0430\u0437 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0421\u0438-\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 RAM \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <strong>\u043f\u0440\u0438\u043d\u0441\u0442\u043e\u043d\u0441\u043a\u043e\u0439 <\/strong>\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430: \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0448\u0438\u043d\u0435. <\/p>\n<h3>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f<\/h3>\n<ul>\n<li>\n<p><strong>\u0421\u0435\u043a\u0446\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 &#8212; <\/strong>\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u0438\u043d\u0441\u0442\u043e\u043d\u0441\u043a\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 <\/strong>&#8212; \u044d\u0442\u043e \u043a\u043e\u0434\u0430 \u0438 \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a (linker) <\/strong>&#8212; \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u044b \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u0438\u0437 RAM<\/h4>\n<p>\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 RAM \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0446\u0435\u043b\u043e\u043c\u0443 \u0440\u044f\u0434\u0443 \u043f\u0440\u0438\u0447\u0438\u043d<\/p>\n<p>1&#8212;\u041d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e <strong>MPU <\/strong>\u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u0437 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0442\u043e\u0433\u043e \u0436\u0435 SRAM. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0443\u0441\u043a \u0438\u0437 RAM, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 MPU.<\/p>\n<p>2&#8212;\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. RAM \u043f\u0430\u043c\u044f\u0442\u044c \u0431\u043b\u0438\u0436\u0435 \u043a \u044f\u0434\u0440\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434 \u0438\u0437 RAM \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u043c\u0435\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a RAM \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 latency (CCM, ITCM \u0438 \u0442.\u043f.)<\/p>\n<p>3&#8212;\u0423 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0432 RAM \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438, \u0447\u0435\u043c Flash. \u0414\u0430&#8230; \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 <a href=\"https:\/\/habr.com\/ru\/articles\/854050\/\" rel=\"noopener noreferrer nofollow\"><strong>K1948BK018 <\/strong><\/a>(16kByte) \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 <strong>5023\u0412\u0421016 <\/strong>(256kByte RAM). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u0432 <strong>SRAM<\/strong>.<\/p>\n<p>4&#8212;\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 RAM \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0430\u043c\u0443 Flash \u043f\u0430\u043c\u044f\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f  \u0438\u0437 RAM. <\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>\u041f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 \u043d\u0430 \u0431\u043e\u043b\u0433\u0430\u0440\u0441\u043a\u043e\u0439 \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\u0435 <a href=\"https:\/\/www.olimex.com\/Products\/ARM\/ST\/STM32-H407\/open-source-hardware\" rel=\"noopener noreferrer nofollow\">Olimex-STM32-H407<\/a> \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c <a href=\"https:\/\/www.st.com\/en\/microcontrollers-microprocessors\/stm32f407zg.html\" rel=\"noopener noreferrer nofollow\">STM32f407ZG <\/a>\u0432\u043d\u0443\u0442\u0440\u0438. \u0422\u0430\u043c \u043a\u0430\u043a \u0440\u0430\u0437 \u0435\u0441\u0442\u044c \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b  RAM c \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u043e\u0442 0x2000_0000&#8230;0\u04452001_BFFF \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 112 kByte,<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1: \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0446\u0438\u0438<\/strong><\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0432 *.ld \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f \u0441\u0435\u043a\u0446\u0438\u0438 RamFunc \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<pre><code class=\"cpp\">\/* Specify the memory areas *\/ MEMORY {     RAM (xrw)      : ORIGIN = 0x20000000,  LENGTH = 112K     CCMRAM (xrw)   : ORIGIN = 0x10000000,  LENGTH = 64K     FLASH (rx)     : ORIGIN = 0x08000000,  LENGTH = 1024K }  \/* Initialized data sections goes into RAM, load LMA copy after code *\/   .data :    {     . = ALIGN(4);     _sdata = .;        \/* create a global symbol at data start *\/     *(.data)           \/* .data sections *\/     *(.data*)          \/* .data* sections *\/      __RamFunc_start__ = . ;      *(.RamFunc)        \/* .RamFunc sections *\/     *(.RamFunc*)       \/* .RamFunc* sections *\/     __RamFunc_end__ = . ;             . = ALIGN(4);     _edata = .;        \/* define a global symbol at data end *\/   } &gt;RAM AT&gt; FLASH  <\/code><\/pre>\n<p>\u0422\u0443\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0441\u0435\u043a\u0446\u0438\u044f RamFunc) \u043a \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u041d\u0430\u0434\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435: _sdata  \u0438 <em>edata. \u041e\u043d\u0438 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 Reset Handler. <\/em>RamFunc_start \u0438 RamFunc_end \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2: \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e<\/strong><\/p>\n<p>\u041d\u0430\u0434\u043e \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (<strong>attribute<\/strong>((section(&#171;.RamFunc&#187;)))) \u0447\u0442\u043e\u0431\u044b GCC \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0441\u0435\u043a\u0446\u0438\u044e RamFunc<\/p>\n<pre><code class=\"cpp\">__attribute__((section(\".RamFunc\"))) static uint32_t sram_function(uint32_t in_value) {     uint32_t out_value = in_value + 1;     LOG_INFO(TEST,\"%s(),In:%u,Out:%u\",__FUNCTION__,in_value,out_value);     return out_value; } <\/code><\/pre>\n<p> <strong>\u0424\u0430\u0437\u0430 3. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 RAM \u043f\u0430\u043c\u044f\u0442\u044c.<\/strong><\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u043d\u0430 \u043f\u043b\u0430\u0442\u0443 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043f\u0438\u0442\u0430\u043d\u0438\u044f SRAM \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 RAM \u043f\u0430\u043c\u044f\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441 \u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u0412 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>Reset_Handler<\/strong>. <strong>Reset_Handler <\/strong>\u043f\u0438\u0448\u0443\u0442 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435. \u041f\u0435\u0440\u0435\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f  \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>LoopCopyDataInit<\/strong>.<\/p>\n<pre><code class=\"assembly\">Reset_Handler:     ldr   sp, =_estack     \/*Load register with word, set stack pointer *\/  \/* Copy the data segment initializers from flash to SRAM *\/     movs  r1, #0   b  LoopCopyDataInit  CopyDataInit:   ldr  r3, =_sidata   ldr  r3, [r3, r1]   str  r3, [r0, r1]   adds  r1, r1, #4      LoopCopyDataInit:   ldr  r0, =_sdata   \/* Load register with word*\/   ldr  r3, =_edata   \/* Load register with word*\/   adds  r2, r0, r1   \/* ADDS &lt;Rd&gt;,&lt;Rn&gt;,&lt;Rm&gt;*\/   cmp  r2, r3        \/* Compare (immediate) subtracts an immediate value from a register value. It updates the condition flags based on the result, and discards the result.  *\/   bcc  CopyDataInit  \/* branch if carry clear *\/   ldr  r2, =_sbss    \/* Load register with word*\/   b  LoopFillZerobss \/* Branch to target address*\/ \/* Zero fill the bss segment. *\/   FillZerobss:   movs  r3, #0   str  r3, [r2], #4      LoopFillZerobss:    ldr  r3, = _ebss    cmp  r2, r3    bcc  FillZerobss    \/* Call the clock system intitialization function.*\/    bl  SystemInit       \/* Call static constructors *\/    bl __libc_init_array    \/* Call the application's entry point.*\/    bl  main    bx  lr      .size  Reset_Handler, .-Reset_Handler<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/strong><\/p>\n<p>\u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 RAM \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0432\u043e\u044e \u0440\u0430\u0431\u043e\u0442\u0443<\/p>\n<pre><code class=\"cpp\"> static uint32_t g_out_value =0;  __attribute__((section(\".RamFunc\"))) static void  sram_function_void(const uint32_t in_value) {     g_out_value = in_value + 1;     return ; }  bool test_ram_function_void(void){     LOG_INFO(TEST, \"%s():\", __FUNCTION__);     bool res = true;     ram_code_info();     log_level_get_set(ARRAY,LOG_LEVEL_DEBUG);     LOG_INFO(TEST, \"sram_function_void:0x%p\", sram_function_void);      res = is_ram_addr((uint32_t)sram_function_void);     ASSERT_TRUE(res);      sram_function_void(1);     ASSERT_EQ(2, g_out_value);      sram_function_void(2);     ASSERT_EQ(3, g_out_value);      log_level_get_set(ARRAY,LOG_LEVEL_INFO);     return res; }  <\/code><\/pre>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aee\/57f\/be9\/aee57fbe983c8f9b4e77e87e9079e8ba.png\" width=\"601\" height=\"455\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/aee\/57f\/be9\/aee57fbe983c8f9b4e77e87e9079e8ba.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aee\/57f\/be9\/aee57fbe983c8f9b4e77e87e9079e8ba.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431<\/strong><\/p>\n<p>\u042d\u0442\u043e \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431. \u041e\u0434\u043d\u0430\u043a\u043e  \u043f\u043e\u0434\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043a\u0430\u043a \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u041c\u043e\u0436\u0435\u0442 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u0447\u0438\u0441\u0442\u0438\u0442\u044c RAM \u043f\u0430\u043c\u044f\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0443\u0434\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0443\u0441\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e \u0434\u043b\u044f RAM \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<pre><code class=\"cpp\">     \/* RamFunctions  section       If initialized variables will be placed in this section,      the startup code needs to be modified to copy the init-values.      *\/     RamFunctionsBinaryCodeStart = LOADADDR(.RamFunctions);     .RamFunctions :     {         . = ALIGN(4);         RamFuncStart = .;  \/* create a global symbol at RamFunctions start *\/          *(.RamFunctions)   \/* .RamFunctions sections *\/         *(.RamFunctions*)  \/* .RamFunctions* sections *\/                  *(.Ram_Fun)       \/*  .Ram_Fun sections *\/         *(.Ram_Fun*)      \/*  .Ram_Fun* sections *\/              . = ALIGN(4);         RamFuncEnd = .;    \/* create a global symbol at RamFunctions end *\/     } &gt;RAM AT&gt; FLASH <\/code><\/pre>\n<p>\u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 RamFunctionsBinaryCodeStart \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f Flash \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0435\u043a\u0446\u0438\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0414\u0430\u043b\u0435\u0435 \u0432 start up \u043a\u043e\u0434\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e bl  load_ram_functions_binary<\/p>\n<pre><code>    ldr  r2, =_sbss    \/* Load register with word*\/   b  LoopFillZerobss \/* Branch to target address*\/ \/* Zero fill the bss segment. *\/   FillZerobss:   movs  r3, #0   str  r3, [r2], #4      LoopFillZerobss:     ldr  r3, = _ebss     cmp  r2, r3     bcc  FillZerobss      bl  load_ram_data_binary     bl  load_ram_functions_binary     \/* Call the clock system intitialization function.*\/     bl  SystemInit     \/* Call static constructors *\/     bl __libc_init_array     \/* Call the application's entry point.*\/     bl  main     bx  lr  .size  Reset_Handler, .-Reset_Handler<\/code><\/pre>\n<p>\u0412 system init  \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0438 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u0437 flash \u0432 SRAM.<\/p>\n<pre><code class=\"cpp\">\/*     copy array of dwords from pSrc to pHead     pSrc-&gt;pHead  *\/ static void data_copy(uint32_t * pHead,                       uint32_t * pTail,                       uint32_t * pSrc) {     while (pHead &lt; pTail) {         *pHead = *pSrc;         pHead++;         pSrc++;     } }  extern void RamFunctionsBinaryCodeStart; extern void RamFuncStart; extern void RamFuncEnd;  void load_ram_functions_binary(void) {     data_copy(&amp;RamFuncStart, &amp;RamFuncEnd, &amp;RamFunctionsBinaryCodeStart); }<\/code><\/pre>\n<p>\u0412 \u0421\u0438 \u043a\u043e\u0434\u0435 \u0441\u0430\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <strong>Ram_Fun <\/strong>(\u043d\u0435 RamFunctions, \u0430 Ram_Fun )<\/p>\n<pre><code class=\"cpp\">__attribute__((section(\".Ram_Fun\"))) static uint32_t pure_ram_function(uint32_t in_value) {     uint32_t out_value = in_value + 1;     LOG_INFO(TEST,\"%s(),In:%u,Out:%u\",__FUNCTION__, in_value, out_value);     return out_value; }<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437 RAM. <\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2a7\/a7a\/1f0\/2a7a7a1f097fa9d707ea61eaee82a250.png\" width=\"1329\" height=\"558\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/2a7\/a7a\/1f0\/2a7a7a1f097fa9d707ea61eaee82a250.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2a7\/a7a\/1f0\/2a7a7a1f097fa9d707ea61eaee82a250.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<p>\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c <strong>ARM Cortex-M\u0445<\/strong> \u0432\u043d\u0443\u0442\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0421\u0438-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u044f\u043c\u043e \u0438\u0437 SRAM \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0440\u043e\u0433\u0443 \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u0434\u0430, \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f MPU, \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u044d\u043d\u0435\u0440\u0433\u043e\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Flash \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p><strong>\u0421\u043b\u043e\u0432\u0430\u0440\u044c<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\"><strong>\u0410\u043a\u0440\u043e\u043d\u0438\u043c<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">GCC<\/p>\n<\/td>\n<td>\n<p align=\"left\">GNU\u00a0Compiler\u00a0Collection  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">GNU<\/p>\n<\/td>\n<td>\n<p align=\"left\">GNU\u2019s Not UNIX <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">RAM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Random Access Memory (\u041e\u0417\u0423)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">SRAM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Static Random Access Memory<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">CCM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Core Coupled Memory<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">ITCM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Instruction Tightly-Coupled Memory<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">MPU <\/p>\n<\/td>\n<td>\n<p align=\"left\">Memory protection unit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">MIK32<\/p>\n<\/td>\n<td>\n<p align=\"left\">Mikron32<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\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 data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0441 \u0413\u0430\u0440\u0432\u0430\u0440\u0434\u0441\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439: \u043a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0435\u0437 \u0437\u043d\u0430\u043d\u0438\u044f ABI? <a class=\"mention\" href=\"\/users\/bodyawm\">@bodyawm<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/companies\/timeweb\/articles\/784408\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/companies\/timeweb\/articles\/784408\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">How to place and execute ARM Cortex M code in SRAM memory <\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/community.st.com\/t5\/stm32-mcus\/how-to-place-and-execute-stm32-code-in-sram-memory-with\/ta-p\/49528\" rel=\"noopener noreferrer nofollow\">https:\/\/community.st.com\/t5\/stm32-mcus\/how-to-place-and-execute-stm32-code-in-sram-memory-with\/ta-p\/49528<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0415\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e Core-Coupled Memory (CCM) \u043d\u0430 STM32<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/bevice.ru\/posts\/1578.html\" rel=\"noopener noreferrer nofollow\">https:\/\/bevice.ru\/posts\/1578.html<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0420\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 RAM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/electronix.ru\/forum\/topic\/130521-razmeschenie-koda-funktsii-v-ram\/\" rel=\"noopener noreferrer nofollow\">https:\/\/electronix.ru\/forum\/topic\/130521-razmeschenie-koda-funktsii-v-ram\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u041a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Linker_(computing)\" rel=\"noopener noreferrer nofollow\">https:\/\/en.wikipedia.org\/wiki\/Linker_(computing)<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 ARM \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 LLVM <a class=\"mention\" href=\"\/users\/easyly\">@EasyLy<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/575014\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/575014\/<\/a>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">Assembler hint for ARM, ARMv7-M<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1PJhyhc2xLXqMWsjBXjnfePOyHGVJKIZBc2WRMgTtgrY\/edit?gid=0#gid=0\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.google.com\/spreadsheets\/d\/1PJhyhc2xLXqMWsjBXjnfePOyHGVJKIZBc2WRMgTtgrY\/edit?gid=0#gid=0<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">BEKEN: \u043a\u0430\u043a \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 RAM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/microsin.net\/programming\/arm-troubleshooting-faq\/beken-place-function-to-ram.html\" rel=\"noopener noreferrer nofollow\">https:\/\/microsin.net\/programming\/arm-troubleshooting-faq\/beken-place-function-to-ram.html<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u042f\u0437\u044b\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043e\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.opennet.ru\/docs\/RUS\/gnu_ld\/gnuld-3.html\" rel=\"noopener noreferrer nofollow\">https:\/\/www.opennet.ru\/docs\/RUS\/gnu_ld\/gnuld-3.html<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041a\u0430\u043a\u0438\u0435\u00a0<strong>\u0432\u0438\u0434\u044b \u043f\u0430\u043c\u044f\u0442\u0438<\/strong>\u00a0\u0435\u0441\u0442\u044c \u0432 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435.  <\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432 \u0421\u0438 \u044f\u0437\u044b\u043a\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0443\u0437\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438? \u0415\u0441\u0442\u044c \u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0438\u0437 \u0421\u0438-\u043a\u043e\u0434\u0430 \u0443\u0437\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u0435\u043a\u0446\u0438\u0438 .bss .data .text \u0438 \u043f\u0440?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u043d\u043e\u043f\u043e\u0447\u043d\u044b\u0435 Siemens\/Motorola\/Nokia \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u043c\u043e\u0433\u043b\u0438 \u0432 run-time \u0434\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u0431\u0435\u0437 \u043f\u0435\u0440\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438?  <\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u0432 ARM-Cortex-Mx \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0434\u0440\u0435\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 *.map \u0444\u0430\u0439\u043b\u0435?  <\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0421\u0438-\u0444\u0443\u043d\u043a\u0446\u0438\u044e?  <\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/935360\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u041f\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0412\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u043b\u0438 \u043a\u043e\u0434 \u0438\u0437 RAM \u043f\u0430\u043c\u044f\u0442\u0438?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">40%<\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">10<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 40%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">60%<\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">15<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 60%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 25 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 5 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/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=\"https:\/\/habr.com\/ru\/articles\/935360\/\"> https:\/\/habr.com\/ru\/articles\/935360\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043e\u0431\u044b\u0447\u043d\u043e \u043a\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u0437 on-chip NOR flash \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u0430&#8230; \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u043d\u0430 \u0434\u043b\u044f \u043a\u043e\u0434\u0430 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u043d\u0430 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 (\u0413\u0430\u0440\u0432\u0430\u0440\u0434\u0441\u043a\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430). \u041e\u0434\u043d\u0430\u043a\u043e \u0438\u043d\u043e\u0439 \u0440\u0430\u0437 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0421\u0438-\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 RAM \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <strong>\u043f\u0440\u0438\u043d\u0441\u0442\u043e\u043d\u0441\u043a\u043e\u0439 <\/strong>\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430: \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0448\u0438\u043d\u0435. <\/p>\n<h3>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f<\/h3>\n<ul>\n<li>\n<p><strong>\u0421\u0435\u043a\u0446\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 &#8212; <\/strong>\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u0438\u043d\u0441\u0442\u043e\u043d\u0441\u043a\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 <\/strong>&#8212; \u044d\u0442\u043e \u043a\u043e\u0434\u0430 \u0438 \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a (linker) <\/strong>&#8212; \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u044b \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u0438\u0437 RAM<\/h4>\n<p>\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 RAM \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0446\u0435\u043b\u043e\u043c\u0443 \u0440\u044f\u0434\u0443 \u043f\u0440\u0438\u0447\u0438\u043d<\/p>\n<p>1&#8212;\u041d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e <strong>MPU <\/strong>\u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u0437 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0442\u043e\u0433\u043e \u0436\u0435 SRAM. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0443\u0441\u043a \u0438\u0437 RAM, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 MPU.<\/p>\n<p>2&#8212;\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. RAM \u043f\u0430\u043c\u044f\u0442\u044c \u0431\u043b\u0438\u0436\u0435 \u043a \u044f\u0434\u0440\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434 \u0438\u0437 RAM \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u043c\u0435\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a RAM \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 latency (CCM, ITCM \u0438 \u0442.\u043f.)<\/p>\n<p>3&#8212;\u0423 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0432 RAM \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438, \u0447\u0435\u043c Flash. \u0414\u0430&#8230; \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 <a href=\"https:\/\/habr.com\/ru\/articles\/854050\/\" rel=\"noopener noreferrer nofollow\"><strong>K1948BK018 <\/strong><\/a>(16kByte) \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 <strong>5023\u0412\u0421016 <\/strong>(256kByte RAM). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u0432 <strong>SRAM<\/strong>.<\/p>\n<p>4&#8212;\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 RAM \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0430\u043c\u0443 Flash \u043f\u0430\u043c\u044f\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f  \u0438\u0437 RAM. <\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>\u041f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 \u043d\u0430 \u0431\u043e\u043b\u0433\u0430\u0440\u0441\u043a\u043e\u0439 \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\u0435 <a href=\"https:\/\/www.olimex.com\/Products\/ARM\/ST\/STM32-H407\/open-source-hardware\" rel=\"noopener noreferrer nofollow\">Olimex-STM32-H407<\/a> \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c <a href=\"https:\/\/www.st.com\/en\/microcontrollers-microprocessors\/stm32f407zg.html\" rel=\"noopener noreferrer nofollow\">STM32f407ZG <\/a>\u0432\u043d\u0443\u0442\u0440\u0438. \u0422\u0430\u043c \u043a\u0430\u043a \u0440\u0430\u0437 \u0435\u0441\u0442\u044c \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b  RAM c \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u043e\u0442 0x2000_0000&#8230;0\u04452001_BFFF \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 112 kByte,<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1: \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0446\u0438\u0438<\/strong><\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0432 *.ld \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f \u0441\u0435\u043a\u0446\u0438\u0438 RamFunc \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<pre><code class=\"cpp\">\/* Specify the memory areas *\/ MEMORY {     RAM (xrw)      : ORIGIN = 0x20000000,  LENGTH = 112K     CCMRAM (xrw)   : ORIGIN = 0x10000000,  LENGTH = 64K     FLASH (rx)     : ORIGIN = 0x08000000,  LENGTH = 1024K }  \/* Initialized data sections goes into RAM, load LMA copy after code *\/   .data :    {     . = ALIGN(4);     _sdata = .;        \/* create a global symbol at data start *\/     *(.data)           \/* .data sections *\/     *(.data*)          \/* .data* sections *\/      __RamFunc_start__ = . ;      *(.RamFunc)        \/* .RamFunc sections *\/     *(.RamFunc*)       \/* .RamFunc* sections *\/     __RamFunc_end__ = . ;             . = ALIGN(4);     _edata = .;        \/* define a global symbol at data end *\/   } &gt;RAM AT&gt; FLASH  <\/code><\/pre>\n<p>\u0422\u0443\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0441\u0435\u043a\u0446\u0438\u044f RamFunc) \u043a \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u041d\u0430\u0434\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435: _sdata  \u0438 <em>edata. \u041e\u043d\u0438 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 Reset Handler. <\/em>RamFunc_start \u0438 RamFunc_end \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2: \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e<\/strong><\/p>\n<p>\u041d\u0430\u0434\u043e \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (<strong>attribute<\/strong>((section(&#171;.RamFunc&#187;)))) \u0447\u0442\u043e\u0431\u044b GCC \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0441\u0435\u043a\u0446\u0438\u044e RamFunc<\/p>\n<pre><code class=\"cpp\">__attribute__((section(\".RamFunc\"))) static uint32_t sram_function(uint32_t in_value) {     uint32_t out_value = in_value + 1;     LOG_INFO(TEST,\"%s(),In:%u,Out:%u\",__FUNCTION__,in_value,out_value);     return out_value; } <\/code><\/pre>\n<p> <strong>\u0424\u0430\u0437\u0430 3. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 RAM \u043f\u0430\u043c\u044f\u0442\u044c.<\/strong><\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u043d\u0430 \u043f\u043b\u0430\u0442\u0443 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043f\u0438\u0442\u0430\u043d\u0438\u044f SRAM \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 RAM \u043f\u0430\u043c\u044f\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441 \u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u0412 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>Reset_Handler<\/strong>. <strong>Reset_Handler <\/strong>\u043f\u0438\u0448\u0443\u0442 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435. \u041f\u0435\u0440\u0435\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f  \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>LoopCopyDataInit<\/strong>.<\/p>\n<pre><code class=\"assembly\">Reset_Handler:     ldr   sp, =_estack     \/*Load register with word, set stack pointer *\/  \/* Copy the data segment initializers from flash to SRAM *\/     movs  r1, #0   b  LoopCopyDataInit  CopyDataInit:   ldr  r3, =_sidata   ldr  r3, [r3, r1]   str  r3, [r0, r1]   adds  r1, r1, #4      LoopCopyDataInit:   ldr  r0, =_sdata   \/* Load register with word*\/   ldr  r3, =_edata   \/* Load register with word*\/   adds  r2, r0, r1   \/* ADDS &lt;Rd&gt;,&lt;Rn&gt;,&lt;Rm&gt;*\/   cmp  r2, r3        \/* Compare (immediate) subtracts an immediate value from a register value. It updates the condition flags based on the result, and discards the result.  *\/   bcc  CopyDataInit  \/* branch if carry clear *\/   ldr  r2, =_sbss    \/* Load register with word*\/   b  LoopFillZerobss \/* Branch to target address*\/ \/* Zero fill the bss segment. *\/   FillZerobss:   movs  r3, #0   str  r3, [r2], #4      LoopFillZerobss:    ldr  r3, = _ebss    cmp  r2, r3    bcc  FillZerobss    \/* Call the clock system intitialization function.*\/    bl  SystemInit       \/* Call static constructors *\/    bl __libc_init_array    \/* Call the application's entry point.*\/    bl  main    bx  lr      .size  Reset_Handler, .-Reset_Handler<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/strong><\/p>\n<p>\u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 RAM \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0432\u043e\u044e \u0440\u0430\u0431\u043e\u0442\u0443<\/p>\n<pre><code class=\"cpp\"> static uint32_t g_out_value =0;  __attribute__((section(\".RamFunc\"))) static void  sram_function_void(const uint32_t in_value) {     g_out_value = in_value + 1;     return ; }  bool test_ram_function_void(void){     LOG_INFO(TEST, \"%s():\", __FUNCTION__);     bool res = true;     ram_code_info();     log_level_get_set(ARRAY,LOG_LEVEL_DEBUG);     LOG_INFO(TEST, \"sram_function_void:0x%p\", sram_function_void);      res = is_ram_addr((uint32_t)sram_function_void);     ASSERT_TRUE(res);      sram_function_void(1);     ASSERT_EQ(2, g_out_value);      sram_function_void(2);     ASSERT_EQ(3, g_out_value);      log_level_get_set(ARRAY,LOG_LEVEL_INFO);     return res; }  <\/code><\/pre>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431<\/strong><\/p>\n<p>\u042d\u0442\u043e \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431. \u041e\u0434\u043d\u0430\u043a\u043e  \u043f\u043e\u0434\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043a\u0430\u043a \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u041c\u043e\u0436\u0435\u0442 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u0447\u0438\u0441\u0442\u0438\u0442\u044c RAM \u043f\u0430\u043c\u044f\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0443\u0434\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0443\u0441\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e \u0434\u043b\u044f RAM \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<pre><code class=\"cpp\">     \/* RamFunctions  section       If initialized variables will be placed in this section,      the startup code needs to be modified to copy the init-values.      *\/     RamFunctionsBinaryCodeStart = LOADADDR(.RamFunctions);     .RamFunctions :     {         . = ALIGN(4);         RamFuncStart = .;  \/* create a global symbol at RamFunctions start *\/          *(.RamFunctions)   \/* .RamFunctions sections *\/         *(.RamFunctions*)  \/* .RamFunctions* sections *\/                  *(.Ram_Fun)       \/*  .Ram_Fun sections *\/         *(.Ram_Fun*)      \/*  .Ram_Fun* sections *\/              . = ALIGN(4);         RamFuncEnd = .;    \/* create a global symbol at RamFunctions end *\/     } &gt;RAM AT&gt; FLASH <\/code><\/pre>\n<p>\u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 RamFunctionsBinaryCodeStart \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f Flash \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0435\u043a\u0446\u0438\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0414\u0430\u043b\u0435\u0435 \u0432 start up \u043a\u043e\u0434\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e bl  load_ram_functions_binary<\/p>\n<pre><code>    ldr  r2, =_sbss    \/* Load register with word*\/   b  LoopFillZerobss \/* Branch to target address*\/ \/* Zero fill the bss segment. *\/   FillZerobss:   movs  r3, #0   str  r3, [r2], #4      LoopFillZerobss:     ldr  r3, = _ebss     cmp  r2, r3     bcc  FillZerobss      bl  load_ram_data_binary     bl  load_ram_functions_binary     \/* Call the clock system intitialization function.*\/     bl  SystemInit     \/* Call static constructors *\/     bl __libc_init_array     \/* Call the application's entry point.*\/     bl  main     bx  lr  .size  Reset_Handler, .-Reset_Handler<\/code><\/pre>\n<p>\u0412 system init  \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0438 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u0437 flash \u0432 SRAM.<\/p>\n<pre><code class=\"cpp\">\/*     copy array of dwords from pSrc to pHead     pSrc-&gt;pHead  *\/ static void data_copy(uint32_t * pHead,                       uint32_t * pTail,                       uint32_t * pSrc) {     while (pHead &lt; pTail) {         *pHead = *pSrc;         pHead++;         pSrc++;     } }  extern void RamFunctionsBinaryCodeStart; extern void RamFuncStart; extern void RamFuncEnd;  void load_ram_functions_binary(void) {     data_copy(&amp;RamFuncStart, &amp;RamFuncEnd, &amp;RamFunctionsBinaryCodeStart); }<\/code><\/pre>\n<p>\u0412 \u0421\u0438 \u043a\u043e\u0434\u0435 \u0441\u0430\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <strong>Ram_Fun <\/strong>(\u043d\u0435 RamFunctions, \u0430 Ram_Fun )<\/p>\n<pre><code class=\"cpp\">__attribute__((section(\".Ram_Fun\"))) static uint32_t pure_ram_function(uint32_t in_value) {     uint32_t out_value = in_value + 1;     LOG_INFO(TEST,\"%s(),In:%u,Out:%u\",__FUNCTION__, in_value, out_value);     return out_value; }<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437 RAM. <\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<p>\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c <strong>ARM Cortex-M\u0445<\/strong> \u0432\u043d\u0443\u0442\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0421\u0438-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u044f\u043c\u043e \u0438\u0437 SRAM \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0440\u043e\u0433\u0443 \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u0434\u0430, \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f MPU, \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u044d\u043d\u0435\u0440\u0433\u043e\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Flash \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p><strong>\u0421\u043b\u043e\u0432\u0430\u0440\u044c<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\"><strong>\u0410\u043a\u0440\u043e\u043d\u0438\u043c<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">GCC<\/p>\n<\/td>\n<td>\n<p align=\"left\">GNU\u00a0Compiler\u00a0Collection  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">GNU<\/p>\n<\/td>\n<td>\n<p align=\"left\">GNU\u2019s Not UNIX <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">RAM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Random Access Memory (\u041e\u0417\u0423)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">SRAM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Static Random Access Memory<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">CCM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Core Coupled Memory<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">ITCM<\/p>\n<\/td>\n<td>\n<p align=\"left\">Instruction Tightly-Coupled Memory<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">MPU <\/p>\n<\/td>\n<td>\n<p align=\"left\">Memory protection unit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"144\" width=\"144\">\n<p align=\"left\">MIK32<\/p>\n<\/td>\n<td>\n<p align=\"left\">Mikron32<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\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 data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0441 \u0413\u0430\u0440\u0432\u0430\u0440\u0434\u0441\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439: \u043a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0435\u0437 \u0437\u043d\u0430\u043d\u0438\u044f ABI? <a class=\"mention\" href=\"\/users\/bodyawm\">@bodyawm<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/companies\/timeweb\/articles\/784408\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/companies\/timeweb\/articles\/784408\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">How to place and execute ARM Cortex M code in SRAM memory <\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/community.st.com\/t5\/stm32-mcus\/how-to-place-and-execute-stm32-code-in-sram-memory-with\/ta-p\/49528\" rel=\"noopener noreferrer nofollow\">https:\/\/community.st.com\/t5\/stm32-mcus\/how-to-place-and-execute-stm32-code-in-sram-memory-with\/ta-p\/49528<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0415\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e Core-Coupled Memory (CCM) \u043d\u0430 STM32<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/bevice.ru\/posts\/1578.html\" rel=\"noopener noreferrer nofollow\">https:\/\/bevice.ru\/posts\/1578.html<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0420\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 RAM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/electronix.ru\/forum\/topic\/130521-razmeschenie-koda-funktsii-v-ram\/\" rel=\"noopener noreferrer nofollow\">https:\/\/electronix.ru\/forum\/topic\/130521-razmeschenie-koda-funktsii-v-ram\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u041a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Linker_(computing)\" rel=\"noopener noreferrer nofollow\">https:\/\/en.wikipedia.org\/wiki\/Linker_(computing)<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 ARM \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 LLVM <a class=\"mention\" href=\"\/users\/easyly\">@EasyLy<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/575014\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/575014\/<\/a>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">Assembler hint for ARM, ARMv7-M<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1PJhyhc2xLXqMWsjBXjnfePOyHGVJKIZBc2WRMgTtgrY\/edit?gid=0#gid=0\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.google.com\/spreadsheets\/d\/1PJhyhc2xLXqMWsjBXjnfePOyHGVJKIZBc2WRMgTtgrY\/edit?gid=0#gid=0<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">BEKEN: \u043a\u0430\u043a \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 RAM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/microsin.net\/programming\/arm-troubleshooting-faq\/beken-place-function-to-ram.html\" rel=\"noopener noreferrer nofollow\">https:\/\/microsin.net\/programming\/arm-troubleshooting-faq\/beken-place-function-to-ram.html<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"289\" width=\"289\">\n<p align=\"left\">\u042f\u0437\u044b\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043e\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.opennet.ru\/docs\/RUS\/gnu_ld\/gnuld-3.html\" rel=\"noopener noreferrer nofollow\">https:\/\/www.opennet.ru\/docs\/RUS\/gnu_ld\/gnuld-3.html<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041a\u0430<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-473525","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/473525","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=473525"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/473525\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=473525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=473525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=473525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}