<?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: 56F8256 DataFlash bug in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/56F8256-DataFlash-bug/m-p/1605874#M5487</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;static byte OutOfRange(IFsh1_TAddress addr1,IFsh1_TAddress addr2)&lt;BR /&gt;{&lt;BR /&gt;return ((addr1&amp;gt;addr2)||(addr1&amp;lt;PROG_FLASH_START)||(addr2&amp;gt;PROG_FLASH_END));&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;I have checked the IFsh1.c and IFsh1.h, but I do not see the body of byte DataFlash_GetLongFlash(DataFlash_TAddress Addr,dword *Data) api function.&lt;/P&gt;
&lt;P&gt;Based on the body of OutOfRange(), so it has issue for the calling function code:&lt;/P&gt;
&lt;P&gt;if(OutOfRange(Addr+1,Addr+1)) /* Check range of address */&lt;BR /&gt;return ERR_RANGE;&lt;/P&gt;
&lt;P&gt;Can you tell us where the body of byte DataFlash_GetLongFlash(DataFlash_TAddress Addr,dword *Data) api function is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 06:57:14 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-02-27T06:57:14Z</dc:date>
    <item>
      <title>56F8256 DataFlash bug</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56F8256-DataFlash-bug/m-p/1605370#M5484</link>
      <description>&lt;P&gt;Latest release has a range check bug in DataFlash_GetLongFlash(). Should be checking OutOfRange(Addr, Addr+1).&lt;/P&gt;&lt;P&gt;byte DataFlash_GetLongFlash(DataFlash_TAddress Addr,dword *Data)&lt;BR /&gt;{&lt;BR /&gt;if (OutOfRange(Addr+1,Addr+1)) /* Check range of address */&lt;BR /&gt;return ERR_RANGE;&lt;BR /&gt;*Data = readflash(Addr) + (((dword)(readflash(Addr+1)))&amp;lt;&amp;lt;16); /* Read data from FLASH */&lt;BR /&gt;return ERR_OK;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 16:01:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56F8256-DataFlash-bug/m-p/1605370#M5484</guid>
      <dc:creator>jjt</dc:creator>
      <dc:date>2023-02-24T16:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: 56F8256 DataFlash bug</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56F8256-DataFlash-bug/m-p/1605874#M5487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;static byte OutOfRange(IFsh1_TAddress addr1,IFsh1_TAddress addr2)&lt;BR /&gt;{&lt;BR /&gt;return ((addr1&amp;gt;addr2)||(addr1&amp;lt;PROG_FLASH_START)||(addr2&amp;gt;PROG_FLASH_END));&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;I have checked the IFsh1.c and IFsh1.h, but I do not see the body of byte DataFlash_GetLongFlash(DataFlash_TAddress Addr,dword *Data) api function.&lt;/P&gt;
&lt;P&gt;Based on the body of OutOfRange(), so it has issue for the calling function code:&lt;/P&gt;
&lt;P&gt;if(OutOfRange(Addr+1,Addr+1)) /* Check range of address */&lt;BR /&gt;return ERR_RANGE;&lt;/P&gt;
&lt;P&gt;Can you tell us where the body of byte DataFlash_GetLongFlash(DataFlash_TAddress Addr,dword *Data) api function is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 06:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56F8256-DataFlash-bug/m-p/1605874#M5487</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-02-27T06:57:14Z</dc:date>
    </item>
  </channel>
</rss>

