|
发表于 2024-5-23 11:55:16
|
显示全部楼层
读取FM33LE026的UID, 读出的全是0xFF, 是什么原因呢?
#define const_mcu_id (((uint8_t *)(0x1FFFFA10))) //UID
#define ID_SIZE 12
uint8_t mcu_id[ID_SIZE] = {0};
int main(void)
{
/* Reset of all peripherals, Initializes the Flash inte**ce and the Systick. */
/* SHOULD BE KEPT!!! */
MF_Clock_Init();
/* Configure the system clock */
/* SHOULD BE KEPT!!! */
MF_SystemClock_Config();
/* Initialize FL Driver Library */
/* SHOULD BE KEPT!!! */
FL_Init();
/* Initialize all configured peripherals */
/* SHOULD BE KEPT!!! */
MF_Config_Init();
memcpy(mcu_id, const_mcu_id, ID_SIZE);
LED_Init();
....
} |
|