问答

汇集网友智慧,解决技术难题

21ic问答首页 - HC32L136获取唯一身份标识跳转HardFault_Handler

国产芯片 HC32 技术交流

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);
}
回答 +关注 5
382人浏览 3人回答问题 分享 举报
3 个回答

您需要登录后才可以回复 登录 | 注册