Hi,
I work with the freedom K22FN,and i use the KSDK_1.1.0 ,i test power comsumption when the code execute the CoreMark benchmark code executing from flash, and all peripheral clocks disabled
,I found results diffenrent from datasheet:(ie:i use the same conditions as the datasheet :clocks...)
IDD | Typ:from datasheet | mesuared |
IDD_HSRUN | 28 | 30.87 |
IDD_RUN | 17.5 | 21.013 |
IDD_VLPR | 0.882 | 3.2 |
IN SystemInit function i add this lines to disable peripheral clocks:
for (i = 0; i < HW_PORT_INSTANCE_COUNT; i++)
{
CLOCK_SYS_DisablePortClock(i);
}
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateRtc0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateDma0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateDmamux0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateEwm0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateFlexbus0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateFtf0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateCrc0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateRnga0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateCmp);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateVref0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateSai0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGatePdb0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGatePit0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateLptmr0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateLpuart0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateI2c0 );
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateI2c1 );
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateUart0);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateUart1);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateUart2);
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateUsbfs0);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateFtm3);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateFtm2);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateFtm1);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateFtm0);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateDac0);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateAdc0);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateDac1);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateAdc1);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateSpi0);
SIM_HAL_DisableClock(SIM_BASE,kSimClockGateSpi1);
Thank you
Hi, Mhiri
Please pay more patience, I will check your issue. Thanks.
Best Regards
Paul
Hi,
Thank you