<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using external flash for both application and file system storage in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-external-flash-for-both-application-and-file-system/m-p/1851164#M29904</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232448"&gt;@BrendaCG616&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please note, the&amp;nbsp;&lt;SPAN&gt;SLN-SVUI-IOT is also using the external flash, and the external flash can't support RWW. So, if you want in the external flash do the flash operation, eg, write, erase, you need to copy the flash operation to the internal RAM. So, you need to copy your used flash file to the internal RAM, and run in the internal RAM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can check the SDK demo, flexspi_polling, you can find the flash operation file all in the internal RAM.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1713761503791.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274844iE1277F7703EEFB18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1713761503791.png" alt="kerryzhou_0-1713761503791.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 04:52:02 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2024-04-22T04:52:02Z</dc:date>
    <item>
      <title>Using external flash for both application and file system storage</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-external-flash-for-both-application-and-file-system/m-p/1850277#M29878</link>
      <description>&lt;P&gt;Hi!!&lt;BR /&gt;&lt;BR /&gt;My team and I are developing a project with the SLN-SVUI-IOT board. We're using the external flash memory to store the application, but we also want to use a part of it to store some files. We currently have a working application that uses WiFi, UART and LPSPI. Now, I'm trying to integrate the usage of the flash memory to read files. I'm using the sln_svui_local_demo example as a base, but the program keeps crashing in the FLEXSPI_Init function, so I guess there is something in the configurations I am missing.&lt;BR /&gt;&lt;BR /&gt;Is there any tutorial for flash configuration so it can be used as described?&lt;BR /&gt;&lt;BR /&gt;============================================================&lt;BR /&gt;Additionally, here is some context.&amp;nbsp;This is my main function:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;int main(void) {
/* Enable additional fault handlers */
 SCB-&amp;gt;SHCSR |= (SCB_SHCSR_BUSFAULTENA_Msk
| /*SCB_SHCSR_USGFAULTENA_Msk |*/SCB_SHCSR_MEMFAULTENA_Msk);

/* Relocate Vector Table */
#if RELOCATE_VECTOR_TABLE
BOARD_RelocateVectorTableToRam();
#endif

/* Init board hardware. */
BOARD_ConfigMPU();
BOARD_InitBootPins();
BOARD_InitBootClocks();
#ifndef BOARD_INIT_DEBUG_CONSOLE_PERIPHERAL
/* Init FSL debug console. */
BOARD_InitDebugConsole();
#endif

/* Initialize Flash to allow writing */
SLN_Flash_Init();
if (SLN_FLASH_FS_OK != sln_flash_fs_ops_init(false)) {
 PRINTF(("ERROR: littlefs init failed!\r\n"));
}
xTaskCreate(read_file_task, "Read_Task", 512, NULL,
 configMAX_PRIORITIES - 4, &amp;amp;appTaskHandle);
/* Run RTOS */
vTaskStartScheduler();
while (1) {
}
return 0;
}

#endif&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;it crashes during&amp;nbsp;&lt;SPAN&gt;SLN_Flash_Init&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;I attached config files where are located the functions called before &lt;SPAN&gt;SLN_Flash_Init&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;I also added these flags into compiler preprocessor settings:&lt;BR /&gt;&lt;BR /&gt;XIP_EXTERNAL_FLASH=1&lt;BR /&gt;XIP_BOOT_HEADER_ENABLE=1&lt;BR /&gt;XIP_BOOT_HEADER_DCD_ENABLE=1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 01:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-external-flash-for-both-application-and-file-system/m-p/1850277#M29878</guid>
      <dc:creator>BrendaCG616</dc:creator>
      <dc:date>2024-04-19T01:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using external flash for both application and file system storage</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-external-flash-for-both-application-and-file-system/m-p/1851164#M29904</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232448"&gt;@BrendaCG616&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please note, the&amp;nbsp;&lt;SPAN&gt;SLN-SVUI-IOT is also using the external flash, and the external flash can't support RWW. So, if you want in the external flash do the flash operation, eg, write, erase, you need to copy the flash operation to the internal RAM. So, you need to copy your used flash file to the internal RAM, and run in the internal RAM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can check the SDK demo, flexspi_polling, you can find the flash operation file all in the internal RAM.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1713761503791.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274844iE1277F7703EEFB18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1713761503791.png" alt="kerryzhou_0-1713761503791.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 04:52:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-external-flash-for-both-application-and-file-system/m-p/1851164#M29904</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-04-22T04:52:02Z</dc:date>
    </item>
  </channel>
</rss>

