21ic问答首页 - HC32L136获取唯一身份标识跳转HardFault_Handler
HC32L136获取唯一身份标识跳转HardFault_Handler
qgy10072024-01-03
int32_t main(void){
UniqueID[0] = *((volatile unsigned int*)0x00100E74);//这个可以读取的到
UniqueID[1] = *((volatile unsigned int*)0x00100E75);//下面的读取则直接跳转到HardFault_Handler
UniqueID[2] = *((volatile unsigned int*)0x00100E76);
UniqueID[3] = *((volatile unsigned int*)0x00100E77);
UniqueID[4] = *((volatile unsigned int*)0x00100E78);
UniqueID[5] = *((volatile unsigned int*)0x00100E79);
UniqueID[6] = *((volatile unsigned int*)0x00100E7a);
UniqueID[7] = *((volatile unsigned int*)0x00100E7b);
UniqueID[8] = *((volatile unsigned int*)0x00100E7c);
UniqueID[9] = *((volatile unsigned int*)0x00100E7d);
while(1);
}
赞0
评论
2024-01-04
赞0
评论
2024-01-04
赞0
评论
2024-01-03
您需要登录后才可以回复 登录 | 注册