<?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>MPC5xxxのトピックRe: Using the memmove function provided by the libc99 library gives an error result in S32 DS USING</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Using-the-memmove-function-provided-by-the-libc99-library-gives/m-p/1850680#M25344</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already put answer to your original thread -&amp;nbsp;&lt;A href="https://community.nxp.com/t5/MPC5xxx/mpc5744-facing-a-memmove-function-bug/m-p/1850679#M2534" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx/mpc5744-facing-a-memmove-function-bug/m-p/1850679#M2534&lt;/A&gt;3&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 12:21:03 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2024-04-19T12:21:03Z</dc:date>
    <item>
      <title>Using the memmove function provided by the libc99 library gives an error result in S32 DS USING 5744</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Using-the-memmove-function-provided-by-the-libc99-library-gives/m-p/1850645#M25340</link>
      <description>&lt;P&gt;Hi NXP experts,&lt;/P&gt;&lt;P&gt;Recently we are using mpc5744 with S32 Design Studio for Power Architecture Version 2017.R1 to compile the project. Now we are facing a memmove function problem.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The project in the attachment is modified based on "hello world" and can reproduce the issue we encountered. We defined a 40-byte array of type U8 as the data source, used 0x4001268e as the data destination, called the memmove function to copy data, but found that the last 6 bytes of the destination data were not copied correctly. Upon analyzing the standard C code, we discovered that the issue might be related to the macro replacement of deref_auto_inc in __copy_long_mem.c. The memmove.o included in libc9&lt;/SPAN&gt;&lt;SPAN&gt;9.a should have enabled #define deref_auto_inc(p) *++(p), but it was incorrectly enabled as #define deref_auto_inc(p) *(p)++. We want to confirm if this issue is caused by a bug in the default lib library provided by s32DS or an default method we have usd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We also found in the map file that the memmove function is not compiled from the C source code but rather uses library functions from libc99.a. This means that we cannot solve this problem by modifying the C source code, is that correct? How should we go about resolving this issue then?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are in urgent need of your help. Project is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zhaoning_0-1713524575116.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274708iEB4B02C080FA7256/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_0-1713524575116.png" alt="zhaoning_0-1713524575116.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_0-1713524575116.png&lt;/span&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="zhaoning_1-1713524575149.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274705i94A2755E75B29DEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_1-1713524575149.png" alt="zhaoning_1-1713524575149.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_1-1713524575149.png&lt;/span&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="zhaoning_2-1713524575128.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274707i9C3D689BCD08A85A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_2-1713524575128.png" alt="zhaoning_2-1713524575128.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_2-1713524575128.png&lt;/span&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="zhaoning_3-1713524575125.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274709i3AF690989BD98C0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_3-1713524575125.png" alt="zhaoning_3-1713524575125.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_3-1713524575125.png&lt;/span&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="zhaoning_4-1713524575249.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274710iA0F9D4123CF76163/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_4-1713524575249.png" alt="zhaoning_4-1713524575249.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_4-1713524575249.png&lt;/span&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="zhaoning_5-1713524575135.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274711i32CD9EA221FD1226/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_5-1713524575135.png" alt="zhaoning_5-1713524575135.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_5-1713524575135.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zhaoning_6-1713524625706.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274712iCF7360AF751A725E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhaoning_6-1713524625706.png" alt="zhaoning_6-1713524625706.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;zhaoning_6-1713524625706.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 11:05:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Using-the-memmove-function-provided-by-the-libc99-library-gives/m-p/1850645#M25340</guid>
      <dc:creator>zhaoning</dc:creator>
      <dc:date>2024-04-19T11:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using the memmove function provided by the libc99 library gives an error result in S32 DS USING</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Using-the-memmove-function-provided-by-the-libc99-library-gives/m-p/1850680#M25344</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already put answer to your original thread -&amp;nbsp;&lt;A href="https://community.nxp.com/t5/MPC5xxx/mpc5744-facing-a-memmove-function-bug/m-p/1850679#M2534" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx/mpc5744-facing-a-memmove-function-bug/m-p/1850679#M2534&lt;/A&gt;3&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 12:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Using-the-memmove-function-provided-by-the-libc99-library-gives/m-p/1850680#M25344</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-04-19T12:21:03Z</dc:date>
    </item>
  </channel>
</rss>

