IAR函数无法跳转、注释快捷键及parsing restarts here after previous syntax error问题

函数无法跳转:

点击Option --> Project,先将目前全部选中的选项全部取消,然后确认。再重新进入Option --> Project,重新将之前的选项勾选上,确认之后就可以跳转了。这好像是IAR的一个bug吧,用过几个版本都有这个问题。


快捷键:

1、注释多行,选中所要注释的代码,使用快捷键Ctrl+K。

2、取消多行,选中索要取消注释的代码,使用快捷键Ctrl+Shift+K。(如果电脑是搜狗输入法,请将输入法切换至系统自带输入法。否则无法取消注释,与搜狗输入法冲突了。

3、格式化源码 --> CTRL + T,将代码自动对齐。更进一步可以设置自己的代码缩进风格,Option --> Editor,在右侧的Auto indent下面,点击Configure,然后就可以设置自己的代码风格了。

4、自动缩进 -->选中某些行,然后 使用 CTRL + SHIFT +I ,可以实现自动的缩进。

5、自动往后  -->选中某些行,然后 使用 TAB键,可以实现自动的后退。


parsing restarts here after previous syntax error问题:

这个问题一般就是自己的代码的问题,多注意检查编译提示错误的地方。

1、检查有没有多写或少写括号

2、换行“\”后不能带空格

3、实在检查不出错误,可clean project->rebuild project



Rebuild started: Project: Template *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\qiancode\ARM\ARMCC\Bin' Rebuild target 'Target 1' assembling startup_stm32f10x_hd_vl.s... compiling main.c... compiling stm32f10x_it.c... User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; User\stm32f10x_it.c: 1 warning, 1 error compiling stm32f10x_gpio.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 1 warning, 1 error compiling core_cm3.c... compiling system_stm32f10x.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\CMSIS\system_stm32f10x.c: 1 warning, 1 error compiling stm32f10x_adc.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c: 1 warning, 1 error compiling stm32f10x_usart.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c:
03-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值