21ic问答首页 - hc32l130f8ua芯片使用keil调试出错
hc32l130f8ua芯片使用keil调试出错
fidhaois2024-07-13
使用keil调试hc32l130f8ua时,SystemInit函数中的M0P_SYSCTRL->RCL_CR_f.TRIM = (*((volatile uint16_t*) (0x00100C22ul)));报错没有读的权限
*** error 65: access violation at 0x00100C22 : no 'read' permission
void SystemInit(void)
{
M0P_SYSCTRL->RCL_CR_f.TRIM = (*((volatile uint16_t*) (0x00100C22ul)));
M0P_SYSCTRL->RCH_CR_f.TRIM = (*((volatile uint16_t*) (0x00100C08ul)));
SystemCoreClockUpdate();
_HidePinInit();
}
*** error 65: access violation at 0x00100C22 : no 'read' permission
void SystemInit(void)
{
M0P_SYSCTRL->RCL_CR_f.TRIM = (*((volatile uint16_t*) (0x00100C22ul)));
M0P_SYSCTRL->RCH_CR_f.TRIM = (*((volatile uint16_t*) (0x00100C08ul)));
SystemCoreClockUpdate();
_HidePinInit();
}
赞0
评论
2024-07-17
您需要登录后才可以回复 登录 | 注册