野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 26250|回复: 4

关于f429 can回环测试和双击通信hal库历程编译报错

[复制链接]
发表于 2021-2-24 18:31:39 | 显示全部楼层 |阅读模式
  1. *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'd:\Keil_v5\ARM\ARMCC\Bin'
  2. Build target 'Target 1'
  3. compiling stm32f4xx_hal_dcmi.c...
  4. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(188): error:  #20: identifier "DCMI_ESCR_LSC" is undefined
  5.                                ((uint32_t)hdcmi->Init.SyncroCode.LineStartCode <<
  6. CMI_POSITION_ESCR_LSC)|
  7. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(189): error:  #20: identifier "DCMI_ESCR_LEC" is undefined
  8.                                ((uint32_t)hdcmi->Init.SyncroCode.LineEndCode <<
  9. CMI_POSITION_ESCR_LEC) |
  10. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(190): error:  #20: identifier "DCMI_ESCR_FEC" is undefined
  11.                                ((uint32_t)hdcmi->Init.SyncroCode.FrameEndCode <<
  12. CMI_POSITION_ESCR_FEC));
  13. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(194): error:  #20: identifier "DCMI_IER_OVR_IE" is undefined
  14.    
  15. _HAL_DCMI_ENABLE_IT(hdcmi, DCMI_IT_LINE | DCMI_IT_VSYNC | DCMI_IT_ERR | DCMI_IT_OVR);
  16. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(513): error:  #20: identifier "DCMI_RISR_OVR_RIS" is undefined
  17.     if((isr_value &
  18. CMI_FLAG_OVRRI) == DCMI_FLAG_OVRRI)
  19. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(555): error:  #20: identifier "DCMI_IER_OVR_IE" is undefined
  20.         
  21. _HAL_DCMI_DISABLE_IT(hdcmi, DCMI_IT_LINE | DCMI_IT_VSYNC | DCMI_IT_ERR | DCMI_IT_OVR);
  22. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(670): error:  #20: identifier "DCMI_CWSIZE_VLINE" is undefined
  23.     hdcmi->Instance->CWSIZER = (XSize | (YSize <<
  24. CMI_POSITION_CWSIZE_VLINE));
  25. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c(671): error:  #20: identifier "DCMI_CWSTRT_VST" is undefined
  26.     hdcmi->Instance->CWSTRTR = (X0 | (Y0 <<
  27. CMI_POSITION_CWSTRT_VST));
  28. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c: 0 warnings, 8 errors
  29. compiling stm32f4xx_hal_dma2d.c...
  30. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c(1669): error:  #20: identifier "DMA2D_OPFCCR_CM_0" is undefined
  31.       else if (hdma2d->Init.ColorMode ==
  32. MA2D_OUTPUT_RGB888)
  33. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c(1673): error:  #20: identifier "DMA2D_OPFCCR_CM_1" is undefined
  34.       else if (hdma2d->Init.ColorMode ==
  35. MA2D_OUTPUT_RGB565)
  36. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c: 0 warnings, 2 errors
  37. compiling stm32f4xx_hal_dcmi_ex.c...
  38. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c(158): error:  #20: identifier "DCMI_ESCR_LSC" is undefined
  39.                                ((uint32_t)hdcmi->Init.SyncroCode.LineStartCode <<
  40. CMI_POSITION_ESCR_LSC)|
  41. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c(159): error:  #20: identifier "DCMI_ESCR_LEC" is undefined
  42.                                ((uint32_t)hdcmi->Init.SyncroCode.LineEndCode <<
  43. CMI_POSITION_ESCR_LEC) |
  44. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c(160): error:  #20: identifier "DCMI_ESCR_FEC" is undefined
  45.                                ((uint32_t)hdcmi->Init.SyncroCode.FrameEndCode <<
  46. CMI_POSITION_ESCR_FEC));
  47. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c(165): error:  #20: identifier "DCMI_IER_OVR_IE" is undefined
  48.    
  49. _HAL_DCMI_ENABLE_IT(hdcmi, DCMI_IT_LINE | DCMI_IT_VSYNC | DCMI_IT_ERR | DCMI_IT_OVR);
  50. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c: 0 warnings, 4 errors
  51. compiling stm32f4xx_hal_sai.c...
  52. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c(471): error:  #20: identifier "SAI_xFRCR_FSPOL" is undefined
  53.                              SAI_xFRCR_FSPOL | SAI_xFRCR_FSOFF));
  54. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c(1661): error:  #20: identifier "SAI_xFRCR_FSPOL" is undefined
  55.       hsai->FrameInit.FSPolarity =
  56. AI_FS_ACTIVE_HIGH;
  57. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c(1736): error:  #20: identifier "SAI_xFRCR_FSPOL" is undefined
  58.     hsai->FrameInit.FSPolarity     =
  59. AI_FS_ACTIVE_HIGH;
  60. ..\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c: 0 warnings, 3 errors
  61. "..\Output\YH-F429.axf" - 17 Error(s), 0 Warning(s).
  62. Target not created.
  63. Build Time Elapsed:  00:00:02
复制代码

求解怎么解决啊

回复

使用道具 举报

 楼主| 发表于 2021-2-24 18:32:37 | 显示全部楼层
我全部把这些错误的地方注释掉以后烧写,,在编译又是一大推错误
回复 支持 反对

使用道具 举报

发表于 2021-2-25 09:07:46 | 显示全部楼层
40-CAN通信实验.rar (4.49 MB, 下载次数: 14)
试了编译没有问题
确认重新下载好资料
野火STM32F429挑战者_V1_V2开发板 — 野火产品资料下载中心 文档 (embedfire.com)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-2-25 11:20:05 | 显示全部楼层
WishWish 发表于 2021-2-25 09:07
试了编译没有问题
确认重新下载好资料
野火STM32F429挑战者_V1_V2开发板 — 野火产品资料下载中心 文档 ( ...

试过了还是不行,,跟编译器版本又关系吗

IDE-Version:
μVision V5.17.0.0
Copyright (C) 2015 ARM Ltd and ARM Germany GmbH. All rights reserved.

License Information:
sa Administrator
sa
LIC=VGXG8-3LLQZ-MMA9I-TK8MA-NW0ZS-D02YR

Tool Version Numbers:
Toolchain:        MDK-ARM Standard  Version: 5.17
Toolchain Path:    d:\Keil_v5\ARM\ARMCC\Bin
C Compiler:         Armcc.exe        V5.06 update 1 (build 61)
Assembler:          Armasm.exe        V5.06 update 1 (build 61)
Linker/Locator:     ArmLink.exe        V5.06 update 1 (build 61)
Library Manager:    ArmAr.exe        V5.06 update 1 (build 61)
Hex Converter:      FromElf.exe        V5.06 update 1 (build 61)
CPU DLL:               SARMCM3.DLL          V5.17
Dialog DLL:         DCM.DLL              V1.13.4.0
Target DLL:             UL2CM3.DLL           V1.156.1.0
Dialog DLL:         TCM.DLL              V1.14.6.0

回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-2-25 11:40:30 | 显示全部楼层
解决了,,是pack包版本的问题     之前是Keil.STM32F4xx_DFP.2.7.0    换成Keil.STM32F4xx_DFP.2.14.0就可以了
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-9-22 11:30 , Processed in 0.033161 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表