串口调试

[复制链接]
366|0
 楼主| Spikess 发表于 2018-6-7 12:58 | 显示全部楼层 |阅读模式

想要执行串口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访问违例:没有“读取”权限

这是什么原因?









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

本版积分规则

417

主题

421

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部