<?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 ConfigTools issue: Watchdog configuration for LPC54113 in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010334#M5265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am developing a project using the LCP54113 MCU wich requires watchdog.&lt;/P&gt;&lt;P&gt;I used the ConfigTools to facilitate the configuration, but there seems to be a problem. The code generated does not sets the frequency for the WWDT. The workaround I found was to manually set, by doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define WDT_CLK_FREQ CLOCK_GetFreq(kCLOCK_WdtOsc)&lt;/P&gt;&lt;P&gt;WWDT_1_config.clockFreq_Hz = WDT_CLK_FREQ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of couse, this requires me to change the declaration of "&lt;SPAN&gt;WWDT_1_config" both on peripherals.c and peripherals.h file, removing the "const" declaration. This is pretty annoying, as long I have to do this every time there is any change on the chip configurations generated by ConfigTools. If i don't do this, the processor stalls on initialization, once "WWDT_1_config.clockFreq_Hz = 0".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any known bugs related to this? Could be there any mistake from me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The WWDT component configurations are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73854i324A26F2505BD8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code generated for WWDT is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt; * WWDT_1 initialization code&lt;BR /&gt; **********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'WWDT_1'&lt;BR /&gt;- type: 'wwdt'&lt;BR /&gt;- mode: 'reset_mode'&lt;BR /&gt;- custom_name_enabled: 'true'&lt;BR /&gt;- type_id: 'wwdt_2cb925533f814de0a276eb97fc166b0f'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'WWDT'&lt;BR /&gt;- config_sets:&lt;BR /&gt; - general:&lt;BR /&gt; - wwdt_config:&lt;BR /&gt; - clockSource: 'FunctionClock'&lt;BR /&gt; - clockSourceFreq: 'BOARD_BootClockHSRUN'&lt;BR /&gt; - enableWwdt: 'true'&lt;BR /&gt; - enableWatchdogProtect: 'false'&lt;BR /&gt; - enableLockOscillator: 'false'&lt;BR /&gt; - timeoutValue_input: '0xFFFFFF'&lt;BR /&gt; - windowEnable: 'false'&lt;BR /&gt; - warningValue_input: '512'&lt;BR /&gt; - interrupt:&lt;BR /&gt; - IRQn: 'WDT_BOD_IRQn'&lt;BR /&gt; - enable_priority: 'false'&lt;BR /&gt; - priority: '0'&lt;BR /&gt; - enable_custom_name: 'false'&lt;BR /&gt; * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const wwdt_config_t WWDT_1_config = {&lt;BR /&gt; .enableWwdt = true,&lt;BR /&gt; .enableWatchdogReset = true,&lt;BR /&gt; .enableWatchdogProtect = false,&lt;BR /&gt; .enableLockOscillator = false,&lt;BR /&gt; .windowValue = WWDT_1_WINDOW,&lt;BR /&gt; .timeoutValue = WWDT_1_TIMEOUT,&lt;BR /&gt; .warningValue = WWDT_1_WARNING&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;void WWDT_1_init(void) {&lt;BR /&gt; /* WWDT_1 initiation */&lt;BR /&gt; WWDT_Init(WWDT_1_PERIPHERAL, &amp;amp;WWDT_1_config);&lt;BR /&gt; /* Enable interrupt WDT_BOD_IRQn request in the NVIC */&lt;BR /&gt; EnableIRQ(WWDT_1_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2020 18:55:22 GMT</pubDate>
    <dc:creator>eduardocarletti</dc:creator>
    <dc:date>2020-01-14T18:55:22Z</dc:date>
    <item>
      <title>ConfigTools issue: Watchdog configuration for LPC54113</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010334#M5265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am developing a project using the LCP54113 MCU wich requires watchdog.&lt;/P&gt;&lt;P&gt;I used the ConfigTools to facilitate the configuration, but there seems to be a problem. The code generated does not sets the frequency for the WWDT. The workaround I found was to manually set, by doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define WDT_CLK_FREQ CLOCK_GetFreq(kCLOCK_WdtOsc)&lt;/P&gt;&lt;P&gt;WWDT_1_config.clockFreq_Hz = WDT_CLK_FREQ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of couse, this requires me to change the declaration of "&lt;SPAN&gt;WWDT_1_config" both on peripherals.c and peripherals.h file, removing the "const" declaration. This is pretty annoying, as long I have to do this every time there is any change on the chip configurations generated by ConfigTools. If i don't do this, the processor stalls on initialization, once "WWDT_1_config.clockFreq_Hz = 0".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any known bugs related to this? Could be there any mistake from me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The WWDT component configurations are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73854i324A26F2505BD8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code generated for WWDT is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt; * WWDT_1 initialization code&lt;BR /&gt; **********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'WWDT_1'&lt;BR /&gt;- type: 'wwdt'&lt;BR /&gt;- mode: 'reset_mode'&lt;BR /&gt;- custom_name_enabled: 'true'&lt;BR /&gt;- type_id: 'wwdt_2cb925533f814de0a276eb97fc166b0f'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'WWDT'&lt;BR /&gt;- config_sets:&lt;BR /&gt; - general:&lt;BR /&gt; - wwdt_config:&lt;BR /&gt; - clockSource: 'FunctionClock'&lt;BR /&gt; - clockSourceFreq: 'BOARD_BootClockHSRUN'&lt;BR /&gt; - enableWwdt: 'true'&lt;BR /&gt; - enableWatchdogProtect: 'false'&lt;BR /&gt; - enableLockOscillator: 'false'&lt;BR /&gt; - timeoutValue_input: '0xFFFFFF'&lt;BR /&gt; - windowEnable: 'false'&lt;BR /&gt; - warningValue_input: '512'&lt;BR /&gt; - interrupt:&lt;BR /&gt; - IRQn: 'WDT_BOD_IRQn'&lt;BR /&gt; - enable_priority: 'false'&lt;BR /&gt; - priority: '0'&lt;BR /&gt; - enable_custom_name: 'false'&lt;BR /&gt; * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const wwdt_config_t WWDT_1_config = {&lt;BR /&gt; .enableWwdt = true,&lt;BR /&gt; .enableWatchdogReset = true,&lt;BR /&gt; .enableWatchdogProtect = false,&lt;BR /&gt; .enableLockOscillator = false,&lt;BR /&gt; .windowValue = WWDT_1_WINDOW,&lt;BR /&gt; .timeoutValue = WWDT_1_TIMEOUT,&lt;BR /&gt; .warningValue = WWDT_1_WARNING&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;void WWDT_1_init(void) {&lt;BR /&gt; /* WWDT_1 initiation */&lt;BR /&gt; WWDT_Init(WWDT_1_PERIPHERAL, &amp;amp;WWDT_1_config);&lt;BR /&gt; /* Enable interrupt WDT_BOD_IRQn request in the NVIC */&lt;BR /&gt; EnableIRQ(WWDT_1_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 18:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010334#M5265</guid>
      <dc:creator>eduardocarletti</dc:creator>
      <dc:date>2020-01-14T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools issue: Watchdog configuration for LPC54113</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010335#M5266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="315879" data-username="eduardocarletti" href="https://community.nxp.com/people/eduardocarletti"&gt;Eduardo Carletti&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's your config tool version? Did you test it on the latest Rev 7.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 08:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010335#M5266</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-01-16T08:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools issue: Watchdog configuration for LPC54113</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010336#M5267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please also specify version of MCUXpresso SDK you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the snippet you included I see that you are using&amp;nbsp;WWDT Peripherals tool component version 2.0.0. This component is aligned with WWDT SDK driver version 2.0.0 (present in SDK v2.4.x or earlier) which in fact does not use&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clockFreq_Hz in the&amp;nbsp;wwdt_config_t structure.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;typedef&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;struct&lt;/SPAN&gt; _wwdt_config
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  bool enableWwdt&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Enables or disables WWDT */&lt;/SPAN&gt;
  bool enableWatchdogReset&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; true: Watchdog timeout will cause a chip reset
  false: Watchdog timeout will not cause a chip reset */&lt;/SPAN&gt;
  bool enableWatchdogProtect&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; true: Enable watchdog protect i.e timeout value can only be
  changed after counter is below warning &amp;amp; window values
  false: Disable watchdog protect; timeout value can be changed
  at any time */&lt;/SPAN&gt;
  bool enableLockOscillator&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; true: Disabling or powering down the watchdog oscillator is prevented
  Once set, this bit can only be cleared by a reset
  false: Do not lock oscillator */&lt;/SPAN&gt;
  uint32_t windowValue&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Window value, set this to 0xFFFFFF if windowing is not in effect */&lt;/SPAN&gt;
  uint32_t timeoutValue&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Timeout value */&lt;/SPAN&gt;
  uint32_t warningValue&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Watchdog time counter value that will generate a
  warning interrupt. Set this to 0 for no warning */&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; wwdt_config_t&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;clockFreq_Hz was introduced into&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;wwdt_config_t in WWDT driver from version 2.1.0 (SDK v2.5.x and later).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; "&gt;So I guess you are combining the WWDT component with incorrect SDK version. You can pick the proper version of WWDT component in the component selector when adding component to the project (be aware that you first need to remove the previous version from the project):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/95998iE5B01239B285969C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Hope this will help you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Lukas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:33:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010336#M5267</guid>
      <dc:creator>Lukas_Heczko</dc:creator>
      <dc:date>2020-11-02T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools issue: Watchdog configuration for LPC54113</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010337#M5268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas. That was exactly my mistake. My SDK was updated, but I did choose the older version of the component. Its working now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 18:31:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010337#M5268</guid>
      <dc:creator>eduardocarletti</dc:creator>
      <dc:date>2020-01-16T18:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools issue: Watchdog configuration for LPC54113</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010338#M5269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ZhangJennie, thanks for your reply. The problem was solved as suggested by Lukas Heczko.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 18:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/ConfigTools-issue-Watchdog-configuration-for-LPC54113/m-p/1010338#M5269</guid>
      <dc:creator>eduardocarletti</dc:creator>
      <dc:date>2020-01-16T18:33:06Z</dc:date>
    </item>
  </channel>
</rss>

