<?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>S32KのトピックRe: Execute a function in FlexRam in s32k144</title>
    <link>https://community.nxp.com/t5/S32K/Execute-a-function-in-FlexRam-in-s32k144/m-p/1884862#M36427</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231069"&gt;@Guna&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Would you please share the project so that I can test it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 07:20:17 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-06-11T07:20:17Z</dc:date>
    <item>
      <title>Execute a function in FlexRam in s32k144</title>
      <link>https://community.nxp.com/t5/S32K/Execute-a-function-in-FlexRam-in-s32k144/m-p/1884133#M36386</link>
      <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;Full Context for ur understanding. We are using NXP s32k144 for our project.&amp;nbsp;We are writing a code for PBLupdater which will erase and write present PBl with a new PBL. At first, both PBL and PBLUpdater were in FLASH. Then we were facing MEMManage fault , we understood that as both PBL and PBLUpdater were in the same read partition block --that caused the fault. So we are trying to execute the PBLUpdater functions to erase and write to flash in FlexRam.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---SORRY FOR MY SYNTAX----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our Function definition look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__attribute__(section(".FlexRamSection")) EraseSectorFucntion definition(address){.....}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__attribute__(section(".FlexRamSection")) EraseSectorFucntion definition(address){.....}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linker file look like this:-&lt;/P&gt;&lt;P&gt;define region FlexRam=mem:[from 0x14000000 to 0x14000FFF];&lt;/P&gt;&lt;P&gt;place in FlexRam&lt;/P&gt;&lt;P&gt;{ ro section .sectionName};&lt;/P&gt;&lt;P&gt;In our Code we call the function like this:&lt;BR /&gt;int main(){&lt;BR /&gt;  ...&lt;BR /&gt;  ...&lt;BR /&gt;  EraseSectorFucntion();&lt;BR /&gt;  ....&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;using as a pointer also we tried:&lt;BR /&gt;int main(){&lt;BR /&gt;  ...&lt;BR /&gt;  ...&lt;BR /&gt;  funcpointer=&amp;amp;EraseSectorFucntion();&lt;BR /&gt;  funcpointer();&lt;BR /&gt;  ....&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;i'm sure that the function is at the FlexRam Address(looked in Disassembly). but when i execute the code. i'm getting Hard Fault for Undefined intruction. Please provide some idea/hints.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:54:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Execute-a-function-in-FlexRam-in-s32k144/m-p/1884133#M36386</guid>
      <dc:creator>Guna</dc:creator>
      <dc:date>2024-06-10T08:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a function in FlexRam in s32k144</title>
      <link>https://community.nxp.com/t5/S32K/Execute-a-function-in-FlexRam-in-s32k144/m-p/1884862#M36427</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231069"&gt;@Guna&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Would you please share the project so that I can test it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 07:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Execute-a-function-in-FlexRam-in-s32k144/m-p/1884862#M36427</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-06-11T07:20:17Z</dc:date>
    </item>
  </channel>
</rss>

