编辑
2024-06-03
软件编程
0
C
u8 MCU_ID[24]; void FlashReadID() { u32 FlashID[3]={0,0,0}; FlashID[0] = *(uint32_t*)(0x1FFFF7E8); FlashID[1] = *(uint32_t*)(0x1FFFF7EC); FlashID[2] = *(uint32_t*)(0x1FFFF7F0); sprintf((char*)MCU_ID,"%08X%08X%08X",FlashID[0],FlashID[1],FlashID[2]); printf("MCU_ID:%s\r\n",MCU_ID); }

本文作者:Kellermen

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!