Arda Otuz

MCUXpresso Config Tools V7.0 -- WDTT Configuration Bug

Discussion created by Arda Otuz on Mar 27, 2020
Latest reply on Apr 17, 2020 by Diego Charles

Using LPC802M001JDH20

 

As configuring the WDTT, even though everything (including clocksource and frequency) in Config Tools software is specified;

 

Config Tools provides the following inside peripherals.c:

 

const wwdt_config_t WWDT_config = {
.enableWwdt = true,
.enableWatchdogProtect = false,
.enableLockOscillator = true,
};

 

However, system fails inside fsl.wwdt.c -> WWDT_Init function @line 139 "assert(0U != config->clockFreq_Hz);"

 

Reason: Config Tool must add clock frequency inside WWDT_config struct:

 

const wwdt_config_t WWDT_config = {
.enableWwdt = true,
.enableWatchdogProtect = false,
.enableLockOscillator = true,
.clockFreq_Hz = XXXXXXX                <- should be added but not by the Config Tools
};

 

Unless you fix this section by adding clockFreq manually, code will fail @ assert(0U != config->clockFreq_Hz);

Outcomes