想要执行串口printf(),可是调试时指向
void SystemInit (void)
{
/* Reset the RCC clock configuration to the default reset state(for debug purpose) */
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
/* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
#ifndef STM32F10X_CL
RCC->CFGR &= (uint32_t)0xF8FF0000;
......................................
出现:
*** error 65: access violation at 0x40021000 : no 'read' permission:* * *错误65:0 x40021000访问违例:没有“读取”权限
这是什么原因?
|
|