<?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>LPC MicrocontrollersのトピックRe: LPC55S69 trustzone example flash init hardfault</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1301693#M45722</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188647" target="_self" aria-label="View Profile of idtmdwo"&gt;&lt;SPAN class=""&gt;idtmdwo&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;VERSION_FLASH_API_TREE is at boot rom address&amp;nbsp;0x1301fe00.&lt;/P&gt;
&lt;P&gt;According to UM, the user's TrstZone configuration data must allow ROM code execution for successful transition from secure to normal mode and jump to user application. Thus some settings are necessary.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1625215200138.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148629i9377899C6A41476B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1625215200138.png" alt="ZhangJennie_0-1625215200138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So to fix the error,&lt;/P&gt;
&lt;P&gt;1. in&amp;nbsp;Security access configuration window, set related security level as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_1-1625215450720.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148630i1C28BFBA96813C9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_1-1625215450720.png" alt="ZhangJennie_1-1625215450720.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. When operate Flash and other related peripherals in secure world, make sure the related peripherals are S-Priv. In your application, SYSCTRL and FLASH are used, we need to set both of them as S-Priv.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_4-1625215667880.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148636i6EF1D19B5254DD0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_4-1625215667880.png" alt="ZhangJennie_4-1625215667880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_2-1625215643914.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148633i3A55E610E0B0264D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_2-1625215643914.png" alt="ZhangJennie_2-1625215643914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_3-1625215651997.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148635iADD4EF68D3AB2530/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_3-1625215651997.png" alt="ZhangJennie_3-1625215651997.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After above setting, update code. Your Flash code should be able to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jul 2021 08:49:25 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2021-07-02T08:49:25Z</dc:date>
    <item>
      <title>LPC55S69 trustzone example flash init hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1301414#M45711</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;I am going to do flash write/read by referring to the flashiap example code in the trustzone example code.&lt;BR /&gt;But VERSION1_FLASH_API_TREE-&amp;gt;flash_init(config);&lt;BR /&gt;In this part, it falls into a hard fault.&lt;BR /&gt;May I know what could be the cause?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148561iFF71151C4785ADE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148562i6F65F54959380E81/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148563iAEBB890B40BC10F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 00:14:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1301414#M45711</guid>
      <dc:creator>idtmdwo</dc:creator>
      <dc:date>2021-07-02T00:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 trustzone example flash init hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1301693#M45722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188647" target="_self" aria-label="View Profile of idtmdwo"&gt;&lt;SPAN class=""&gt;idtmdwo&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;VERSION_FLASH_API_TREE is at boot rom address&amp;nbsp;0x1301fe00.&lt;/P&gt;
&lt;P&gt;According to UM, the user's TrstZone configuration data must allow ROM code execution for successful transition from secure to normal mode and jump to user application. Thus some settings are necessary.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1625215200138.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148629i9377899C6A41476B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1625215200138.png" alt="ZhangJennie_0-1625215200138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So to fix the error,&lt;/P&gt;
&lt;P&gt;1. in&amp;nbsp;Security access configuration window, set related security level as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_1-1625215450720.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148630i1C28BFBA96813C9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_1-1625215450720.png" alt="ZhangJennie_1-1625215450720.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. When operate Flash and other related peripherals in secure world, make sure the related peripherals are S-Priv. In your application, SYSCTRL and FLASH are used, we need to set both of them as S-Priv.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_4-1625215667880.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148636i6EF1D19B5254DD0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_4-1625215667880.png" alt="ZhangJennie_4-1625215667880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_2-1625215643914.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148633i3A55E610E0B0264D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_2-1625215643914.png" alt="ZhangJennie_2-1625215643914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_3-1625215651997.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148635iADD4EF68D3AB2530/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_3-1625215651997.png" alt="ZhangJennie_3-1625215651997.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After above setting, update code. Your Flash code should be able to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 08:49:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1301693#M45722</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-07-02T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 trustzone example flash init hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1302096#M45735</link>
      <description>&lt;P&gt;The problem has been resolved.&lt;BR /&gt;Thank you so much for your detailed, easy-to-follow answer.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 00:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1302096#M45735</guid>
      <dc:creator>idtmdwo</dc:creator>
      <dc:date>2021-07-05T00:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 trustzone example flash init hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1302108#M45736</link>
      <description>&lt;P&gt;Good to know. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;You are welcome!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 01:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-trustzone-example-flash-init-hardfault/m-p/1302108#M45736</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-07-05T01:39:07Z</dc:date>
    </item>
  </channel>
</rss>

