ST意法半导体
直播中

王萍

7年用户 1349经验值
私信 关注
[问答]

Keil和touchGFX坏了要怎么处理?

我是 touchGFX 的新手,我正在使用 Keil (v5.xx)。由于缺少文件,我无法编译 746G-Discovery 的 touchGFX 示例,并且在使用设计器生成项目时遇到了同样的问题。
当我尝试编译示例 (STM32Cube_FW_F7_V1.16.0ProjectsSTM32746G-DiscoveryDemonstrationsTouchGFXMDK-ARM) 时,出现以下错误:
  • ../Core/Src/main.cpp(20): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Core/Src/main.cpp: 0 warnings, 1 error
  • compiling Gauge.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/custom_controls_screen/Gauge.cpp: 0 warnings, 1 error
  • compiling EasingEquationGraph.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/easing_equation_screen/EasingEquationGraph.cpp: 0 warnings, 1 error
  • compiling CircularProgress.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/custom_controls_screen/CircularProgress.cpp: 0 warnings, 1 error
  • compiling AbstractGraph.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/AbstractGraph.cpp: 0 warnings, 1 error
  • compiling ThreeWayProgressBar.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/custom_controls_screen/ThreeWayProgressBar.cpp: 0 warnings, 1 error
  • compiling CustomControlsView.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/custom_controls_screen/CustomControlsView.cpp: 0 warnings, 1 error
  • compiling CustomControlsPresenter.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/custom_controls_screen/CustomControlsPresenter.cpp: 0 warnings, 1 error
  • compiling EasingEquationPresenter.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/easing_equation_screen/EasingEquationPresenter.cpp: 0 warnings, 1 error
  • compiling EasingEquationView.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/easing_equation_screen/EasingEquationView.cpp: 0 warnings, 1 error
  • compiling FrontendApplication.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/common/FrontendApplication.cpp: 0 warnings, 1 error
  • compiling Graph.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/Graph.cpp: 0 warnings, 1 error
  • compiling GraphBelow.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/GraphBelow.cpp: 0 warnings, 1 error
  • compiling GraphDots.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/GraphDots.cpp: 0 warnings, 1 error
  • compiling GraphLine.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/GraphLine.cpp: 0 warnings, 1 error
  • compiling GraphPresenter.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/GraphPresenter.cpp: 0 warnings, 1 error
  • compiling PieChart.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/PieChart.cpp: 0 warnings, 1 error
  • compiling GraphView.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/gui/src/graph_screen/GraphView.cpp: 0 warnings, 1 error
  • compiling BoardConfiguration.cpp...
  • ../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error:  #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
  •   #include
  • ../Gui/target/BoardConfiguration.cpp: 0 warnings, 1 error
这是最新的 STMCubeF7 包,没有任何修改,它应该开箱即用。
有任何想法吗?










回帖(1)

王凤兰

2023-1-31 15:27:03
它对我有用。你的电脑上有 TouchGFX 吗?
如果没有,请通过 CubeMX 或在st.com上安装它
https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-touchgfx.html
否则,


  • 使用 TouchGFX 设计器
  • 选择应用模板STM32F746G-Discovery
  • 生成代码
  • 在 CubeMX 中打开 .ioc 文件
  • 将 IDE 更改为 MDK-ARM
  • 使用 CubeMX 生成代码
  • 使用 Designer 生成代码
  • 在 Keil 中打开您的项目
  • 构建你的项目:你不应该有错误

举报

更多回帖

发帖
×
20
完善资料,
赚取积分