打印

串口调试

[复制链接]
261|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

粉丝