编译完程序,然后想flash写入数据时,初始化会返回失败值,即寄存器FTMRE_FCLKDIV_FDVLD一直读取的是1,求解!!!if((FTMRH->FCLKDIV & FTMRH_FCLKDIV_FDIVLD_MASK) &&
((FTMRH->FCLKDIV & FTMRH_FCLKDIV_FDIV_MASK) != FTMRH_FCLKDIV_FDIV(clkDIV)))
{
/* flash clock prescaler is loaded but with wrong value */
u16Err |= FLASH_ERR_INIT_FDIV;
return (u16Err);
} |