牛卧堂MCU技术交流
标题:
求助,如何读取Nano120的唯一序列号
[打印本页]
作者:
lcofjp
时间:
2013-12-27 11:39
标题:
求助,如何读取Nano120的唯一序列号
求助,如何读取Nano120的唯一序列号,请大神指点一下,在此表示感谢!
作者:
a_ziliu
时间:
2013-12-27 12:01
bsp中有function
int32_t FMC_ReadUID(int index, uint32_t * u32data)
{
if ((index < 0) || (index > 2))
return E_FMC_INVALID_PARAM;
FMC->ISPCMD = FMC_ISPCMD_READ_UID;
FMC->ISPADR = 0x04 * index;
FMC->ISPTRG = FMC_ISPTRG_ISPGO;
while (FMC->ISPTRG & FMC_ISPTRG_ISPGO) ;
if (FMC->ISPCON & FMC_ISPSTA_ISPFF)
{
FMC->ISPCON = FMC_ISPSTA_ISPFF;
return E_FMC_ISP_FAIL;
}
*u32data = FMC->ISPDAT;
return E_FMC_OK;
}
作者:
lcofjp
时间:
2013-12-27 12:36
a_ziliu 发表于 2013-12-27 12:01
bsp中有function
int32_t FMC_ReadUID(int index, uint32_t * u32data)
{
非常感谢,我试试
欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/)
Powered by Discuz! X3.2