根據(jù)手冊取了三個地址:
? ??uint8_t buf[12];
? ? uint32_t uuid[3];
? ? uint32_t code;
? ? uuid[0] = *(__IO uint32_t*) (0x1FFFF7E8);
? ? uuid[1] = *(__IO uint32_t*) (0x1FFFF7EC);
? ? uuid[2] = *(__IO uint32_t*) (0x1FFFF7F0);
? ? code = uuid[0];
? ? buf[0] = (uint8_t) code;
? ? buf[1] = (uint8_t) (code >> 8);
? ? buf[2] = (uint8_t) (code >> 16);
? ? buf[3] = (uint8_t) (code >> 24);
? ? code = uuid[1];
? ? buf[4] = (uint8_t) code;
? ? buf[5] = (uint8_t) (code >> 8);
? ? buf[6] = (uint8_t) (code >> 16);
? ? buf[7] = (uint8_t) (code >> 24);
? ? code = uuid[2];
? ? buf[8] = (uint8_t) code;
? ? buf[9] = (uint8_t) (code >> 8);
? ? buf[10] = (uint8_t) (code >> 16);
? ? buf[11] = (uint8_t) (code >> 24);
-----------------------------------
第三個【0x1FFFF7F0】這里面的地址都是 FF 的嗎?這個代碼獲取出來后:
buf[0-7]是有值的,但buf[8-11]都是 0xFF 。
請問第三個地址正常的嗎?還是我用錯了?