<?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: Const-correctness in LPC55xx ROM API</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Const-correctness-in-LPC55xx-ROM-API/m-p/1719806#M54049</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140851"&gt;@craigmcqueenir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will fix it in next release&amp;nbsp;&lt;SPAN&gt;SDK 2.15.0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for bringing the problem to our attention.&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
    <pubDate>Sat, 09 Sep 2023 06:23:03 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2023-09-09T06:23:03Z</dc:date>
    <item>
      <title>Const-correctness in LPC55xx ROM API</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Const-correctness-in-LPC55xx-ROM-API/m-p/1715592#M53983</link>
      <description>&lt;P&gt;In the SDK for the LPCXpresso55S28, in &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;fsl_iap.c&lt;/STRONG&gt;&lt;/FONT&gt;, there are the definitions of functions in the ROM API. Eg &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;struct version1FlashDriverInterface&lt;/FONT&gt;&lt;/STRONG&gt;, function pointer &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;flash_program()&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;That function &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;flash_program()&lt;/STRONG&gt;&lt;/FONT&gt; has a parameter &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;uint8_t *src&lt;/FONT&gt;&lt;/STRONG&gt;. The&amp;nbsp;parameter isn't marked as &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;const&lt;/STRONG&gt;&lt;/FONT&gt;. I'm wondering if that is because the parameter is genuinely a non-const pointer — i.e.&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;flash_program()&lt;/FONT&gt;&lt;/STRONG&gt; might actually change the src data — or if it is just because the function definitions in&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;fsl_iap.c&lt;/STRONG&gt;&lt;/FONT&gt; have not been created with const-correctness in mind.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 07:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Const-correctness-in-LPC55xx-ROM-API/m-p/1715592#M53983</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2023-09-01T07:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Const-correctness in LPC55xx ROM API</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Const-correctness-in-LPC55xx-ROM-API/m-p/1719806#M54049</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140851"&gt;@craigmcqueenir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will fix it in next release&amp;nbsp;&lt;SPAN&gt;SDK 2.15.0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for bringing the problem to our attention.&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2023 06:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Const-correctness-in-LPC55xx-ROM-API/m-p/1719806#M54049</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-09-09T06:23:03Z</dc:date>
    </item>
  </channel>
</rss>

