<?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: Clarification on Flash Programming Behavior under BEE Configuration (i.MX RT1020) in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2126690#M34619</link>
    <description>Thanks for the reply, !</description>
    <pubDate>Tue, 01 Jul 2025 23:57:54 GMT</pubDate>
    <dc:creator>Seongyon_Jeong</dc:creator>
    <dc:date>2025-07-01T23:57:54Z</dc:date>
    <item>
      <title>Clarification on Flash Programming Behavior under BEE Configuration (i.MX RT1020)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2123719#M34577</link>
      <description>&lt;P&gt;I am currently working with the i.MX RT1020 board.&lt;/P&gt;&lt;P&gt;The current boot image is configured as an XIP image. However, part of the image—specifically the region between 0x6002_0000 ~ 0x6003_0000 — is designed to be copied into SDRAM during runtime. After the copy, execution jumps to the entry point within SDRAM.&lt;/P&gt;&lt;P&gt;This SDRAM-resident code includes logic to communicate with a host PC (e.g., via Ethernet) to download a new firmware segment. Based on the received data, it performs a firmware update by overwriting the corresponding region in external Flash (0x6002_0000 ~ 0x6003_0000).&lt;/P&gt;&lt;P&gt;My concern arises because the Flash content is originally stored in encrypted form, and I have enabled BEE (Bus Encryption Engine) for on-the-fly decryption of this region during XIP.&lt;/P&gt;&lt;P&gt;In this setup, if I use a standard function like flexspi_nor_flash_program() (as provided in the SDK examples) to program the updated image from SDRAM to Flash, will the data be stored in encrypted form?&lt;/P&gt;&lt;P&gt;Or, do I need to manually encrypt the data using the same AES algorithm and key configuration before calling flexspi_nor_flash_program(), to ensure the Flash contents remain encrypted?&lt;/P&gt;&lt;P&gt;In the RM(RT1020 reference manual) section 7.10, the BEE is clearly described as an on-the-fly decryption engine, and there is no mention of encryption support during write operations. This raises concerns about secure firmware update handling in field deployments.&lt;/P&gt;&lt;P&gt;Could you please confirm:&lt;/P&gt;&lt;P&gt;Whether the Flash programming API will automatically encrypt the written data under BEE,&lt;/P&gt;&lt;P&gt;Or if the application must manually encrypt data before writing, in order to maintain BEE compatibility.&lt;/P&gt;&lt;P&gt;Thank you in advance for your support.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 07:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2123719#M34577</guid>
      <dc:creator>Seongyon_Jeong</dc:creator>
      <dc:date>2025-06-26T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Flash Programming Behavior under BEE Configuration (i.MX RT1020)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2126687#M34618</link>
      <description>&lt;P&gt;Bee only decrypts, so the written data must be encrypted externally.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 23:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2126687#M34618</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2025-07-01T23:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Flash Programming Behavior under BEE Configuration (i.MX RT1020)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2126690#M34619</link>
      <description>Thanks for the reply, !</description>
      <pubDate>Tue, 01 Jul 2025 23:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Clarification-on-Flash-Programming-Behavior-under-BEE/m-p/2126690#M34619</guid>
      <dc:creator>Seongyon_Jeong</dc:creator>
      <dc:date>2025-07-01T23:57:54Z</dc:date>
    </item>
  </channel>
</rss>

