<?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中的主题 LPC8N04 PMU register errors</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC8N04-PMU-register-errors/m-p/1084188#M41638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a question but an answer to an issue we were having where non-optimised code worked and optimised code didn't work when using PMU registers of the LPC8N04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are having this issue the problem is caused by the PMU access loops in the API getting optimised out.&lt;/P&gt;&lt;P&gt;Solve by wrapping the 'POWER_ReadPmuReg()' and 'POWER_WritePmuReg()' functions with the following to stop optimisation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma GCC push_options&lt;BR /&gt;#pragma GCC optimize ("O0")&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#pragma GCC pop_options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful to someone and saves some frustration.&lt;/P&gt;&lt;P&gt;Ken...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2020 19:43:23 GMT</pubDate>
    <dc:creator>kenchill</dc:creator>
    <dc:date>2020-06-23T19:43:23Z</dc:date>
    <item>
      <title>LPC8N04 PMU register errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC8N04-PMU-register-errors/m-p/1084188#M41638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a question but an answer to an issue we were having where non-optimised code worked and optimised code didn't work when using PMU registers of the LPC8N04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are having this issue the problem is caused by the PMU access loops in the API getting optimised out.&lt;/P&gt;&lt;P&gt;Solve by wrapping the 'POWER_ReadPmuReg()' and 'POWER_WritePmuReg()' functions with the following to stop optimisation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma GCC push_options&lt;BR /&gt;#pragma GCC optimize ("O0")&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#pragma GCC pop_options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful to someone and saves some frustration.&lt;/P&gt;&lt;P&gt;Ken...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 19:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC8N04-PMU-register-errors/m-p/1084188#M41638</guid>
      <dc:creator>kenchill</dc:creator>
      <dc:date>2020-06-23T19:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC8N04 PMU register errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC8N04-PMU-register-errors/m-p/1084189#M41639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ken,&lt;/P&gt;&lt;P&gt;Thank you for your kindness, I think it is helpful to the other engineers.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 05:44:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC8N04-PMU-register-errors/m-p/1084189#M41639</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-06-29T05:44:07Z</dc:date>
    </item>
  </channel>
</rss>

