【转】关于 Error[Pe020]: identifier "HAL_StatusTypeDef" is undefined

@2019-06-06

【小记】

  这个bug比较常见,右键可以定位到相关头文件,但系统依旧报错,其实主要还是头文件的问题。

1.需要检查头文件中关于主程序所用到的部分是否已经使能,尤其是 “stm32f7xx_hal_con.h”和"stm32f7xx_hal.h"。

2.编译器报错的地方并不准确,比如报头文件 stm32f7xx_rcc.h 中HAL_StatusTypeDef未定义,需要仔细查看报错是在编译那个.C文件的时候出现的。基本上都是自己编写的.c文件编译时出错才会报这种错误,需要注意需要统一 include <stm32f7xx_hal.h>,  而不是单独的include <stm32f7xx_hal_gpio.h>。

来源

原文地址:https://www.cnblogs.com/skullboyer/p/10984389.html

时间: 2024-07-29 19:52:15

【转】关于 Error[Pe020]: identifier "HAL_StatusTypeDef" is undefined的相关文章

visual studio 2010 Error: IntelliSense: identifier &quot;DWORD&quot; is undefined

在自己工程里,添加别的工程文件时,出现改错误 解决方法 在文件前添加: using namespace std; 参考: http://www.programgo.com/article/5024129012/

stm32 usb error : identifier &quot;bool&quot; is undefined

.\usb\USB\usb_pwr.h(54): error:  #20: identifier "bool" is undefinedusb\USB\usb_pwr.h(54): error:  #20: identifier "bool" is undefinedusb-driver\STM32_USB-FS-Device_DriverV3.1.1\src\usb_core.c(511): error:  #20: identifier "TRUE&q

could not build module &#39;XXXXXXXX&#39;或者error: expected identifier or &#39;(&#39; 。一堆奇怪的错误————错误根源

一堆奇怪的错误:1??could not build module 'XXXXXXXX' 2??error: expected identifier or '(' 3??EDIT Setting Precompile prefix header = No results in a bunch of syntax errors instead, in stuff like NSObject.h (and other 4??Foundation framework header) 5??EDIT U

error C2504: &#39;CDialogEx&#39; : base class undefined

自己创建了一个对话框,编译时在生成的对话框类中出现'CDialogEx' : base class undefined..错误 解决方案:#include <afxcontrolbars.h> // 功能区和控件条的 MFC 支持 error C2504: 'CDialogEx' : base class undefined

ORACLE 11G 触发器调试记录Error: PLS-00201: identifier&#39;SYS.DBMS_SYSTEM&#39; must be declared

1,触发器内容如下 CREATE OR REPLACE TRIGGER"LOGON_DENIED_TO_ALERT" AFTER servererror ON DATABASE DECLARE message   VARCHAR2(168); ip        VARCHAR2(15); v_os_user VARCHAR2(80); v_module  VARCHAR2(50); v_action  VARCHAR2(50); v_pid     VARCHAR2(10); v_s

IAR中的 identifier &quot;FILE&quot; is undefined 问题

 最近由于希望使用IAR的printf()函数方便进行打印字符,出现IAR报错,即:identifier "FILE" is undefined,问题得以解决.   (1)进行printf到串口的重映射:   需添加头文件:#include "stdio.h"     (2)经编译出现:       (3)经查找原来是这里需要进行配置:    (4)改成full就可以了:   原文地址:https://www.cnblogs.com/darren-pty/p/911

JSON Parse error: Unexpected identifier &quot;object&quot;;stringToAnyType报错 uni-app

只限于uni 的局限问题,博主的报错是因为初始化某些关键数据在uni的  onLoad生命周期  和  onReady生命周期里面初始化,导致数据加载时出现个别报错的BUG JSON Parse error: Unexpected identifier "object";stringToAnyType 换到 vue的created生命周期里面初始化就解决了 原文地址:https://www.cnblogs.com/swordLaughsHeaven/p/12293016.html

error: stable identifier required, but $iwC.this.$VAL4.sqlContext found.

在spark_shell创建SQLContext导入对象后sqlContext时间,例如,下面的例外: 找个理由sqlContext必须是val类型. 后引入到正常的变化. 版权声明:本文博客原创文章,博客,未经同意,不得转载.

mbed 使用过程中问题汇总

Error[Pe020]: identifier "namespace" is undefined F:\github\NUCLEOF411RE\Source\api\DigitalIn.h 23 提示没定义"namespace" IAR工程默认配置编译语言为Auto 如图: 自己新建的工程中 main文件的后缀为.c,IAR编译时自动判断为 C语言,所以会报错. 将main改为.cpp后缀,IAR编译时自动判断为 C++语言,编译正常.