FPU:(Float Point Unit,浮点运算单元)FPU是专用于浮点运算的处理器

开FPU后功耗降不下来


开启FPU,程序中执行浮点运算后,功耗就降不下来了,需要添加下面代码


#define FPU_EXCEPTION_MASK 0x0000009F

void power_manage(void)

{

    /* Clear exceptions and PendingIRQ from the FPU unit */

    __set_FPSCR(__get_FPSCR()  & ~(FPU_EXCEPTION_MASK));

    (void) __get_FPSCR();

    NVIC_ClearPendingIRQ(FPU_IRQn);

    uint32_t err_code = sd_app_evt_wait();

    APP_ERROR_CHECK(err_code);

}

相关文章:

  • 2021-08-17
  • 2021-08-31
  • 2022-12-23
  • 2021-09-10
  • 2021-08-13
  • 2021-05-04
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2022-03-02
  • 2021-11-02
  • 2021-06-28
  • 2021-05-29
  • 2021-04-08
  • 2021-12-04
  • 2021-09-29
相关资源
相似解决方案