<?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 HSE (Host) Flash Driver issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/HSE-Host-Flash-Driver-issue/m-p/1855687#M34710</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How could I define following addresses in hse_host_flashSrv.h?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying HSE Demo Examples and this addresses are needed when I try to&amp;nbsp;UpdateIvt();&lt;/P&gt;&lt;P&gt;UpdateIvt calls&amp;nbsp;HostFlash_Erase and&amp;nbsp;HostFlash_Program and they calls&amp;nbsp;HostFlash_Init().&lt;/P&gt;&lt;P&gt;the&amp;nbsp;HostFlash_Init function use these addresses for&amp;nbsp; /*Copying the UnsecureBAF Code from flash to RAM to avoid read while write violation */&lt;/P&gt;&lt;P&gt;But I am not sure how to define them? I believe I need to define them in linker maybe, but how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*=============================================================================&lt;BR /&gt;* GLOBAL VARIABLES&lt;BR /&gt;=============================================================================*/&lt;BR /&gt;extern uint32_t FLASH_DRIVER_RAM_DST_START_ADDRESS[];&lt;BR /&gt;extern uint32_t FLASH_DRIVER_FLASH_SRC_START_ADDRESS[];&lt;BR /&gt;extern uint32_t FLASH_DRIVER_FLASH_SRC_END_ADDRESS[];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Old flash driver used in 2020-2021 (host_flash) is different from 2022 version (hse_host_flash).&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 12:44:38 GMT</pubDate>
    <dc:creator>anakha</dc:creator>
    <dc:date>2024-04-26T12:44:38Z</dc:date>
    <item>
      <title>HSE (Host) Flash Driver issue</title>
      <link>https://community.nxp.com/t5/S32K/HSE-Host-Flash-Driver-issue/m-p/1855687#M34710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How could I define following addresses in hse_host_flashSrv.h?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying HSE Demo Examples and this addresses are needed when I try to&amp;nbsp;UpdateIvt();&lt;/P&gt;&lt;P&gt;UpdateIvt calls&amp;nbsp;HostFlash_Erase and&amp;nbsp;HostFlash_Program and they calls&amp;nbsp;HostFlash_Init().&lt;/P&gt;&lt;P&gt;the&amp;nbsp;HostFlash_Init function use these addresses for&amp;nbsp; /*Copying the UnsecureBAF Code from flash to RAM to avoid read while write violation */&lt;/P&gt;&lt;P&gt;But I am not sure how to define them? I believe I need to define them in linker maybe, but how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*=============================================================================&lt;BR /&gt;* GLOBAL VARIABLES&lt;BR /&gt;=============================================================================*/&lt;BR /&gt;extern uint32_t FLASH_DRIVER_RAM_DST_START_ADDRESS[];&lt;BR /&gt;extern uint32_t FLASH_DRIVER_FLASH_SRC_START_ADDRESS[];&lt;BR /&gt;extern uint32_t FLASH_DRIVER_FLASH_SRC_END_ADDRESS[];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Old flash driver used in 2020-2021 (host_flash) is different from 2022 version (hse_host_flash).&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 12:44:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-Host-Flash-Driver-issue/m-p/1855687#M34710</guid>
      <dc:creator>anakha</dc:creator>
      <dc:date>2024-04-26T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: HSE (Host) Flash Driver issue</title>
      <link>https://community.nxp.com/t5/S32K/HSE-Host-Flash-Driver-issue/m-p/1858296#M34886</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222923"&gt;@anakha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see that this is implemented only in linker file for GHS IDE:&lt;BR /&gt;c:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Key Management\S32K344_DemoApp_SessionKeys\src\target\m7\GHS\ld\standard\demo_app.ld&lt;/P&gt;
&lt;P&gt;You can try to do something similar in S32DS linker file or you can follow this document to force a function to RAM:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Run-a-routine-from-RAM-in-S32-Design-Studio/ta-p/1113336" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Run-a-routine-from-RAM-in-S32-Design-Studio/ta-p/1113336&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 07:59:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-Host-Flash-Driver-issue/m-p/1858296#M34886</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-05-02T07:59:48Z</dc:date>
    </item>
  </channel>
</rss>

