compilation error due to enableWait in pwm

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

compilation error due to enableWait in pwm

419 Views
Kulwinder
Contributor I
compilation error due to enableWait in pwm 
 
for SDK_24_12_00_MIMXRT1064xxxxA under MIMXRT1064_features header file
 
/* @brief (e)FlexPWM has no WAITEN Bitfield In CTRL2 Register. */
 
#define FSL_FEATURE_PWM_HAS_NO_WAITEN (1)
 
 
 
then why .mex file adding ".enableWait" field in following structure in peripherial.c file while generating
 
 
 
pwm_config_t PWM1_SM0_config = {
 
 .clockSource = kPWM_BusClock,
 
 .prescale = kPWM_Prescale_Divide_128,
 
 .pairOperation = kPWM_Independent,
 
 .initializationControl = kPWM_Initialize_LocalSync,
 
 .reloadLogic = kPWM_ReloadImmediate,
 
 .reloadSelect = kPWM_LocalReload,
 
 .reloadFrequency = kPWM_LoadEveryOportunity,
 
 .forceTrigger = kPWM_Force_Local,
 
 .enableDebugMode = false,
 
.enableWait = false
 
};
 
 
 
got compilation error as enableWait bit not defined as follow
 
 
 
typedef struct _pwm_config
 
{
 
bool enableDebugMode; /*!< true: PWM continues to run in debug mode;
 
false: PWM is paused in debug mode */
 
#if !defined(FSL_FEATURE_PWM_HAS_NO_WAITEN) || (!FSL_FEATURE_PWM_HAS_NO_WAITEN)
 
bool enableWait; /*!< true: PWM continues to run in WAIT mode;
 
false: PWM is paused in WAIT mode */
 
#endif /* FSL_FEATURE_PWM_HAS_NO_WAITEN */
 
pwm_init_source_t initializationControl; /*!< Option to initialize the counter */
 
pwm_clock_source_t clockSource; /*!< Clock source for the counter */
 
pwm_clock_prescale_t prescale; /*!< Pre-scaler to divide down the clock */
 
pwm_chnl_pair_operation_t pairOperation; /*!< Channel pair in indepedent or complementary mode */
 
pwm_register_reload_t reloadLogic; /*!< PWM Reload logic setup */
 
pwm_reload_source_select_t reloadSelect; /*!< Reload source select */
 
pwm_load_frequency_t reloadFrequency; /*!< Specifies when to reload, used when user's choice
 
is not immediate reload */
 
pwm_force_output_trigger_t forceTrigger; /*!< Specify which signal will trigger a FORCE_OUT */
 
} pwm_config_t;
0 Kudos
Reply
1 Reply

383 Views
Lukas_Heczko
NXP Employee
NXP Employee

Hello,

according to Reference Manual for MIMXRT1064 processors, the PWM CTRL2[WAITEN] bit is present. The compilation error you are observing is caused by bug in the MCUXpresso SDK which will be fixed in June's MCUXpresso SDK 25.06.00 release. As a temporary workaround you may change value of #define FSL_FEATURE_PWM_HAS_NO_WAITEN from (1) to (0).

Thank you for reporting this issue and apologies for the inconveniences!

Regards,

Lukas Heczko

0 Kudos
Reply