<?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>Processor Expert SoftwareのトピックRe: K10 PE_Generated Cpu_VLPModeEnable() issue</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-PE-Generated-Cpu-VLPModeEnable-issue/m-p/183528#M498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;thanks for reporting this. I have reproduced the behaviour and it is a bug in the latest version of ProcessorExpert. It will be fixed in the next release of CodeWarrior (CW V10.2).&lt;BR /&gt;&lt;BR /&gt;For now as workaround please add additional speed mode in the CPU component. After this step, the value of LPWUI bit will be generated according to value of "VLP exit on interrutp" property correctly. I hope that this workaround will be sufficient for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2011 00:48:34 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2011-11-23T00:48:34Z</dc:date>
    <item>
      <title>K10 PE_Generated Cpu_VLPModeEnable() issue</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-PE-Generated-Cpu-VLPModeEnable-issue/m-p/183527#M497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the Kinetis VLP modes, and having an issue with the processor expert generated function "Cpu_VLPModeEnable()" not honoring the setting for "VLP exit on interrupt".&amp;nbsp; I'm using the MK10DN512ZVLK10 CPU &amp;amp; CodeWarrior for MicroControllers v10.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the PE settings for the CPU component, I have VLP mode entry set to "User" (as I wish to control the mode) and "VLP exit on interrupt" set to Disabled.&amp;nbsp; These settings are under Clock configurations/Clock configuration 0/Very low power mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the generated code:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LDD_TError Cpu_VLPModeEnable(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; /* MC_PMCTRL: LPWUI=1,RUNM=2,??=0,??=0,LPLLSM=0 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; MC_PMCTRL = (uint8_t)0xC0U;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable very low power mode */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; while((PMC_REGSC &amp;amp; PMC_REGSC_VLPRS_MASK) == 0x00U) { /* Wait until in the Very Low Power run mode */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; return ERR_OK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This shows LPWUI=1, but I think it should have been 0 since I chose "Disabled".&amp;nbsp; The generated code doesn't change if I chose "Enabled" instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the VLP mode entry setting to "Auto", then it adds this code to the end of&amp;nbsp;PE_low_level_init():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; /* MC_PMCTRL: LPWUI=0,RUNM=2,??=0,??=0,LPLLSM=0 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; MC_PMCTRL = (uint8_t)0x40U;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable Very low power mode */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks like what I expected: the LPWUI setting is 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, am I missing something?&amp;nbsp; Is this an issue with processor expert?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my processor expert version:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This file was created by Processor Expert 5.2 [04.49]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for the Freescale Kinetis series of microcontrollers.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And up at the top of cpu.c it says this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename&amp;nbsp; : Cpu.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project&amp;nbsp;&amp;nbsp; : ProcessorExpert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Processor : MK10DN512ZVLK10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Component : MK10N512LK100&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version&amp;nbsp;&amp;nbsp; : Component 01.002, Driver 01.03, CPU db: 3.00.001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datasheet : K10P144M100SF2RM, Rev. 4, 1 Mar 2011&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compiler&amp;nbsp; : CodeWarrior ARM C Compiler&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date/Time : 2011-11-16, 14:08, # CodeGen: 4&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 04:27:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-PE-Generated-Cpu-VLPModeEnable-issue/m-p/183527#M497</guid>
      <dc:creator>ScottW</dc:creator>
      <dc:date>2011-11-17T04:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: K10 PE_Generated Cpu_VLPModeEnable() issue</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-PE-Generated-Cpu-VLPModeEnable-issue/m-p/183528#M498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;thanks for reporting this. I have reproduced the behaviour and it is a bug in the latest version of ProcessorExpert. It will be fixed in the next release of CodeWarrior (CW V10.2).&lt;BR /&gt;&lt;BR /&gt;For now as workaround please add additional speed mode in the CPU component. After this step, the value of LPWUI bit will be generated according to value of "VLP exit on interrutp" property correctly. I hope that this workaround will be sufficient for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 00:48:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-PE-Generated-Cpu-VLPModeEnable-issue/m-p/183528#M498</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2011-11-23T00:48:34Z</dc:date>
    </item>
  </channel>
</rss>

