{"id":312374,"date":"2020-11-01T03:00:18","date_gmt":"2020-11-01T03:00:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=312374"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=312374","title":{"rendered":"STM32 DoomBoy SDRAM ILI9341"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0420\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0441\u0442\u0438 \u0447\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 STM32F4Discovery. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 STM32F429ZGT \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 LQFP-144. \u0412\u044b\u0431\u0440\u0430\u043b \u0441\u0430\u043c\u044b\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442\u043d\u043e\u0439 \u044d\u043a\u0440\u0430\u043d ILI9341. \u0414\u043e\u0431\u0430\u0432\u0438\u043b w25q64 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 AT25SF081 \u0442\u0430\u043a\u0436\u0435 SD-CARD \u0438 ES8374<br \/>  \u042d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0434\u043b\u044f <a href=\"https:\/\/habr.com\/ru\/post\/512130\/\">Doom Boy ESP32<\/a>. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043b \u043e\u0442\u0441\u0442\u0443\u043f \u0441\u043b\u0435\u0432\u0430. \u042d\u043a\u0440\u0430\u043d \u0441\u0434\u0432\u0438\u043d\u0443\u0442 \u0432\u043b\u0435\u0432\u043e \u043d\u0430 \u0441\u0430\u043d\u0442\u0438\u043c\u0435\u0442\u0440<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kl\/dt\/ub\/kldtubjxdqkzhxjeuzygafjxwls.png\"><\/p>\n<p>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u0432\u044b\u0435 \u0432\u0442\u0443\u043b\u043a\u0438 \u043f\u043e \u043a\u0440\u0430\u044f\u043c \u043f\u043b\u0430\u0442 \u0432 \u043c\u0435\u0441\u0442\u0430 \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f. USB \u0440\u0430\u0437\u044a\u0435\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0441\u0443 \u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0430\u0432\u0438\u0442 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e \u043a\u0440\u0430\u0441\u043e\u0442\u0435 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437<br \/>  <a name=\"habracut\"><\/a><\/p>\n<div class=\"oembed\"><iframe id=\"5f9de83e017bf613f0899dae\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f9de83e017bf613f0899dae\"><\/iframe><\/div>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zq\/4a\/4w\/zq4a4w9lhkrl29g5prda-pn9blq.jpeg\"><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">Connect<\/b>                         <\/p>\n<div class=\"spoiler_text\">16:09:44: Disconnected from device.<br \/>  16:09:45: ST-LINK SN: 1F4204003212374D434B4E00<br \/>  16:09:45: ST-LINK FW: V2J33S7<br \/>  16:09:45: Voltage: 3,28V<br \/>  16:09:45: SWD freq: 4000 KHz<br \/>  16:09:45: Connect mode: Normal<br \/>  16:09:45: Reset mode: Software reset<br \/>  16:09:45: Device ID: 0x419<br \/>  16:09:46: UPLOADING OPTION BYTES DATA\u2026<br \/>  16:09:46: Bank: 0x00<br \/>  16:09:46: Address: 0x40023c14<br \/>  16:09:46: Size: 8 Bytes<br \/>  16:09:46: UPLOADING\u2026<br \/>  16:09:46: Size: 1024 Bytes<br \/>  16:09:46: Address: 0x8000000<br \/>  16:09:46: Read progress:<br \/>  16:09:46: Data read successfully<br \/>  16:09:46: Time elapsed during the read operation is: 00:00:00.006  <\/div>\n<\/p><\/div>\n<p>  \u0420\u0430\u0441\u043f\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u044c. \u0421\u0442\u0430\u0432\u0438\u043c \u041a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0440\u0435\u0437\u043e\u043d\u0430\u0442\u043e\u0440. \u041a\u0432\u0430\u0440\u0446\u044b \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432 \u043f\u0443\u0442\u0438, \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0432\u0430\u044f \u0428\u0435\u043b\u043a\u043e\u0432\u044b\u0439 \u043f\u0443\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u043f\u0430\u044f\u043b \u0438\u0437 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e BT-MP3 \u043f\u043b\u0430\u0442\u044b 24MHz. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 PB13 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434. \u0411\u0435\u0440\u0435\u043c \u043a\u043e\u0434 \u0434\u043b\u044f \u043c\u0438\u0433\u0430\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430 \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e, \u043c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c<\/p>\n<p>  \u0425\u043e\u0442\u0435\u043b \u043f\u043e\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c USB BOOT, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f. \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0430\u0434\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u0432\u0430\u0440\u0446. \u041c\u043e\u0439 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442<\/p>\n<blockquote><p>For connectivity line USB DFU bootloader, the device first tries the 25 MHz configuration, then, if it fails, the 14.7456 MHz configuration, and finally, if it fails, the 8 MHz configuration. In case of fail, this operation is repeated with a bigger timeout value (the three configurations are tested again). If the second trial fails, a system reset is generated.<\/p><\/blockquote>\n<p>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043a\u0432\u0430\u0440\u0446 8MHz \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 ttyUSB \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. STM32F429Discovery \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 BOOT0=1 BOOT1=0 \u0432\u0438\u0434\u0438\u0442 \u043a\u0430\u043a UART \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443. \u041d\u043e \u043a \u043d\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d ST-Link V2 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443. \u041e\u043d \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c <\/p>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 BluePill. \u041d\u0430 \u043d\u0435\u043c \u0438 Debug. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 SWDIO, SWCLK, GND. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0430\u0442\u044b \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 USB, +3.3V \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c!<\/p>\n<p>  \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f ILI9341 \u043a\u0430\u043a \u0443 <a href=\"https:\/\/habr.com\/ru\/post\/512130\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 ESP32 DoomBoy<\/a><\/p>\n<p>  \u041f\u0430\u043c\u044f\u0442\u044c IS42S16400J<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z7\/rm\/o4\/z7rmo4qgqpzcdewtqqmbwokbt8g.png\"><\/p>\n<p>  \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 STM32F429ZGT<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vl\/it\/zn\/vlitznubsnwjifevqv2s9iijsa8.png\"><\/p>\n<p>  \u041f\u043e\u0442\u0440\u0430\u0442\u0438\u043b 3 \u0432\u0435\u0447\u0435\u0440\u0430 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/az\/9c\/gj\/az9cgjxsi7fvbfoymqoeqo2hpnw.png\" alt=\"image\"><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">SDRAM_Initialization_Sequence()<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#define REFRESH_COUNT       ((uint32_t)0x056A)   \/* SDRAM refresh counter (90MHz SDRAM clock) *\/ #define SDRAM_BANK_ADDR     ((uint32_t)0xC0000000)  static void SDRAM_Initialization_Sequence(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command) {   __IO uint32_t tmpmrd =0;   \/* Step 3:  Configure a clock configuration enable command *\/   Command-&gt;CommandMode \t= FMC_SDRAM_CMD_CLK_ENABLE;   Command-&gt;CommandTarget \t= FMC_SDRAM_CMD_TARGET_BANK1;   Command-&gt;AutoRefreshNumber \t = 1;   Command-&gt;ModeRegisterDefinition = 0;    \/* Send the command *\/   HAL_SDRAM_SendCommand(hsdram, Command, 0x1000);    \/* Step 4: Insert 100 ms delay *\/   HAL_Delay(100);    \/* Step 5: Configure a PALL (precharge all) command *\/   Command-&gt;CommandMode \t\t\t = FMC_SDRAM_CMD_PALL;   Command-&gt;CommandTarget \t     = FMC_SDRAM_CMD_TARGET_BANK1;   Command-&gt;AutoRefreshNumber \t = 1;   Command-&gt;ModeRegisterDefinition = 0;    \/* Send the command *\/   HAL_SDRAM_SendCommand(hsdram, Command, 0x1000);    \/* Step 6 : Configure a Auto-Refresh command *\/   Command-&gt;CommandMode \t\t\t = FMC_SDRAM_CMD_AUTOREFRESH_MODE;   Command-&gt;CommandTarget \t\t = FMC_SDRAM_CMD_TARGET_BANK1;   Command-&gt;AutoRefreshNumber \t = 4;   Command-&gt;ModeRegisterDefinition = 0;    \/* Send the command *\/   HAL_SDRAM_SendCommand(hsdram, Command, 0x1000);    \/* Step 7: Program the external memory mode register *\/   tmpmrd = (uint32_t)SDRAM_MODEREG_BURST_LENGTH_2          |                      SDRAM_MODEREG_BURST_TYPE_SEQUENTIAL   |                      SDRAM_MODEREG_CAS_LATENCY_3           |                      SDRAM_MODEREG_OPERATING_MODE_STANDARD |                      SDRAM_MODEREG_WRITEBURST_MODE_SINGLE;    Command-&gt;CommandMode = FMC_SDRAM_CMD_LOAD_MODE;   Command-&gt;CommandTarget \t\t = FMC_SDRAM_CMD_TARGET_BANK1;   Command-&gt;AutoRefreshNumber \t = 1;   Command-&gt;ModeRegisterDefinition = tmpmrd;    \/* Send the command *\/   HAL_SDRAM_SendCommand(hsdram, Command, 0x1000);    \/* Step 8: Set the refresh rate counter *\/   \/* (15.62 us x Freq) - 20 *\/   \/* Set the device refresh counter *\/   HAL_SDRAM_ProgramRefreshRate(hsdram, REFRESH_COUNT); } <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u041f\u0430\u043c\u044f\u0442\u044c \u043e\u0431\u043d\u0443\u043b\u044f\u043b\u0430\u0441\u044c. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0441\u044f \u043c\u0443\u0441\u043e\u0440. \u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c STM32F429I-DISC1 \u0438 \u043d\u0430 \u043d\u0435\u0439 \u0442\u0435\u0441\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u043d\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043a \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0430\u043d\u043a\u0443 0xD0000000, \u044f \u0436\u0435 \u0440\u0430\u0437\u0432\u0435\u043b \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u0430\u043d\u043a 0xC0000000. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0434\u0432\u0443\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u0445<\/p>\n<p>  SDRAM 2 \u2014 STM32F429I-DISC1<br \/>   PB5 &lt;-&gt; FMC_SDCKE1<br \/>   PB6 &lt;-&gt; FMC_SDNE1<\/p>\n<p>  SDRAM 1 \u2014 \u041c\u043e\u044f \u043f\u043b\u0430\u0442\u0430<br \/>   P\u04213 &lt;-&gt; FMC_SDCKE0<br \/>   P\u04212 &lt;-&gt; FMC_SDNE0<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/by\/6s\/kc\/by6skcmznta-swusi3i0ufai1ya.png\" alt=\"image\"><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0430\u044f\u0442\u044c \u044d\u0442\u0443 \u043f\u0430\u043c\u044f\u0442\u044c. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0441\u044f \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u0438\u0442\u044c \u043e\u0441\u0446\u0438\u043b\u043b\u043e\u0433\u0440\u0430\u0444. \u0421\u0434\u0443\u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0444\u0435\u043d\u043e\u043c, \u0432\u043f\u0430\u044f\u043b \u0443\u0436\u0435 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0430\u0440\u0442\u0438\u0438 IS42S16400J \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430. \u0418 \u043e \u0447\u0443\u0434\u043e! \u042f \u0437\u0430\u043f\u0438\u0441\u0430\u043b \u0438 \u0441\u0447\u0438\u0442\u0430\u043b \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u0430\u043c\u0438, \u0432\u0441\u044f \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u043e\u0448\u043b\u0430 \u0442\u0435\u0441\u0442 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u0448\u0438\u043d\u044b \u0438 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 90 MHz. (90MHz SDRAM clock). \u042f \u043d\u0435 \u0431\u0440\u0430\u043b \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441\u043d\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d, \u0430 \u0440\u0430\u0437\u0432\u043e\u0434\u0438\u043b \u0441\u0430\u043c. \u041d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u0435\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<\/p>\n<pre><code class=\"cpp\">\/\/ #define SDRAM_START_ADR                         ((uint32_t)0xD0000000) #define SDRAM_START_ADR                         ((uint32_t)0xC0000000)  #define SDRAM_SIZE                              0x400000          uint32_t j32 = 0x12345678;     uint32_t data32 = 0;      for (i = SDRAM_START_ADR; i &lt; SDRAM_START_ADR + SDRAM_SIZE; i += 4)     {             *(uint32_t*)i = j32;             data = *(uint32_t*)i;             if (data != j32){             \terror_happen();             }     } <\/code><\/pre>\n<p>  \u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043f\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 FMC (Flexible Memory Controller) \u044f \u043d\u0430\u0448\u0435\u043b \u0432 webinar \u0444\u043e\u0440\u043c\u0430\u0442\u0435 pdf<\/p>\n<p>  \u0414\u0440\u0430\u0439\u0432\u0435\u0440 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0432\u0437\u044f\u043b <a href=\"https:\/\/github.com\/martnak\/STM32-ILI9341\" rel=\"nofollow\">STM32-ILI9341<\/a><br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0430\u043f\u043a\u0443 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0432\u044b\u0432\u043e\u0434\u044b \u043d\u0430 SPI1. \u0422\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438\u0441\u044c \u0438 \u043f\u0440\u043e\u0448\u043b\u0438. \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c LVGL \u0438 Doom<\/p>\n<p>  \u041f\u043e\u043a\u0430 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0432\u0435\u0441\u0442\u0438 FATFS \u0434\u043b\u044f SD-CARD. \u0422\u0430\u043a \u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b w25q64<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e \u0442\u0435\u043c\u0435<\/b>                         <\/p>\n<div class=\"spoiler_text\">webinar_stm32_20170511.pdf<br \/>  cd00264379-usb-dfu-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf<\/p>\n<p>  <a href=\"http:\/\/en.radzio.dxp.pl\/stm32f429idiscovery\/sdram.html\" rel=\"nofollow\">en.radzio.dxp.pl\/stm32f429idiscovery\/sdram.html<\/a><br \/>  <a href=\"http:\/\/main.lv\/writeup\/stm32f4_sdram_configuration.md#toc-1\" rel=\"nofollow\">main.lv\/writeup\/stm32f4_sdram_configuration.md#toc-1<\/a><\/p><\/div>\n<\/p><\/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\/post\/513404\/\"> https:\/\/habr.com\/ru\/post\/513404\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0420\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0441\u0442\u0438 \u0447\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 STM32F4Discovery. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 STM32F429ZGT \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 LQFP-144. \u0412\u044b\u0431\u0440\u0430\u043b \u0441\u0430\u043c\u044b\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442\u043d\u043e\u0439 \u044d\u043a\u0440\u0430\u043d ILI9341. \u0414\u043e\u0431\u0430\u0432\u0438\u043b w25q64 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 AT25SF081 \u0442\u0430\u043a\u0436\u0435 SD-CARD \u0438 ES8374<br \/>  \u042d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0434\u043b\u044f <a href=\"https:\/\/habr.com\/ru\/post\/512130\/\">Doom Boy ESP32<\/a>. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043b \u043e\u0442\u0441\u0442\u0443\u043f \u0441\u043b\u0435\u0432\u0430. \u042d\u043a\u0440\u0430\u043d \u0441\u0434\u0432\u0438\u043d\u0443\u0442 \u0432\u043b\u0435\u0432\u043e \u043d\u0430 \u0441\u0430\u043d\u0442\u0438\u043c\u0435\u0442\u0440<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kl\/dt\/ub\/kldtubjxdqkzhxjeuzygafjxwls.png\"><\/p>\n<p>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u0432\u044b\u0435 \u0432\u0442\u0443\u043b\u043a\u0438 \u043f\u043e \u043a\u0440\u0430\u044f\u043c \u043f\u043b\u0430\u0442 \u0432 \u043c\u0435\u0441\u0442\u0430 \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f. USB \u0440\u0430\u0437\u044a\u0435\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0441\u0443 \u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0430\u0432\u0438\u0442 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e \u043a\u0440\u0430\u0441\u043e\u0442\u0435 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-312374","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312374","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=312374"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312374\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}