AnsweredAssumed Answered

SMC_HAL_SetMode porblems

Question asked by Ted Mawson on May 25, 2016
Latest reply on May 25, 2016 by David E Seymour

I'm trying to use the SMC_HAL_Setmode command in KDS 1.3.0 for my KL03 project to change power mode but it has a warning associated with it on compile


I first defined the parameters for smc_power_configuration as follows:

    // Setup the parameters for smc power configuration

    smc_power_mode_config_t smc_power_cfg_VLPS =


       .powerModeName = kPowerModeVlps, // Set the desired power mode

       .stopSubMode = kSmcStopSub3, // Set the sub-mode but I think this is not relevant for VLPS



The other config parameters were either non-applicable to my KL03 or I didn’t need them for the VLPS mode.

I then issued the command to change the processor to VLPS mode similar to the instructions on page 19 of AN4503

        SMC_HAL_SetMode(SMC_BASE, &smc_power_cfg_VLPS);


but there's a warning in the left margin that expands to... "passing argument 1 of 'SMC_HAL_SetMode' makes pointer from integer without a cast [enabled by default]"


The code runs but I don't think it's working properly (because the power usage doesn't drop significantly) and the warning message is worrying because I don't understand what it's trying to tell me.


Have I missed something or done something wrong?