cancel
Showing results for 
Search instead for 
Did you mean: 

4.18.0 Generate Code Failed

JLuo.3
Associate II

I created an simulator project, but I can’t run it.

The log is as follows:

Generate Code
    Copy Framework
        Copying TouchGFX framework version 4.18.0 to E:\ljc\Projects\STM32Projects\touchgfx_test\Middlewares\ST\touchgfx
        Done
    Generate
        Wrote config/gcc/app.mk
        Wrote config/msvs/Application.props
        Wrote generated/gui_generated/include/gui_generated/common/FrontendApplicationBase.hpp
        Wrote generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp
        Wrote generated/gui_generated/include/gui_generated/common/SimConstants.hpp
        Wrote generated/gui_generated/include/gui_generated/screen_screen/screenViewBase.hpp
        Wrote generated/gui_generated/src/common/FrontendApplicationBase.cpp
        Wrote generated/gui_generated/src/screen_screen/screenViewBase.cpp
        Wrote generated/simulator/gcc/Makefile
        Wrote generated/simulator/include/simulator/mainBase.hpp
        Wrote generated/simulator/include/simulator/video/DirectFrameBufferVideoController.hpp
        Wrote generated/simulator/include/simulator/video/MJPEGDecoder.hpp
        Wrote generated/simulator/include/simulator/video/SoftwareMJPEGDecoder.hpp
        Wrote generated/simulator/msvs/touchgfx_prebuild.targets
        Wrote generated/simulator/msvs/touchgfx_sdl2.props
        Wrote generated/simulator/msvs/touchgfx.props
        Wrote generated/simulator/src/mainBase.cpp
        Wrote generated/simulator/src/video/SoftwareMJPEGDecoder.cpp
        Wrote generated/simulator/touchgfx.ico
        Wrote generated/simulator/touchgfx.rc
        Wrote generated/simulator/touchgfx.res
        Wrote gui/include/gui/common/FrontendApplication.hpp
        Wrote gui/include/gui/common/FrontendHeap.hpp
        Wrote gui/include/gui/model/Model.hpp
        Wrote gui/include/gui/model/ModelListener.hpp
        Wrote gui/include/gui/screen_screen/screenPresenter.hpp
        Wrote gui/include/gui/screen_screen/screenView.hpp
        Wrote gui/src/common/FrontendApplication.cpp
        Wrote gui/src/model/Model.cpp
        Wrote gui/src/screen_screen/screenPresenter.cpp
        Wrote gui/src/screen_screen/screenView.cpp
        Wrote simulator/gcc/Makefile
        Wrote simulator/main.cpp
        Wrote simulator/msvs/Application.sln
        Wrote simulator/msvs/Application.vcxproj
        Wrote simulator/msvs/Application.vcxproj.filters
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        'MySQL' �?是内部或外部命令,也�?是�?��?行的程�?
        或批处�?�文件。
        'MySQL' �?是内部或外部命令,也�?是�?��?行的程�?
        或批处�?�文件。
        Failed
    Failed

I tried demos and examples and got the same error.

'MySQL' is not an internal or external command, nor is it an executable program or batch file.

I don't know how to solve it, can anyone help me?:loudly_crying_face:

2 REPLIES 2
JLuo.3
Associate II

0693W00000GXXhhQAH.pngAn exception occurred when I opened the demo.

2021-11-15 13:14:50,041 [1] INFO  TouchGFXDesigner.App: Logging configured
2021-11-15 13:15:16,179 [1] INFO  TouchGFXDesigner.Main.MainWindow: Application started
2021-11-15 13:15:16,180 [1] INFO  TouchGFXDesigner.Main.MainWindow: Username: luoji
2021-11-15 13:15:16,180 [1] INFO  TouchGFXDesigner.Main.MainWindow: Designer version: 4.18.0
2021-11-15 13:15:16,180 [1] INFO  TouchGFXDesigner.Main.MainWindow: Designer installation path: C:\TouchGFX\4.18.0\designer
2021-11-15 13:15:16,180 [1] INFO  TouchGFXDesigner.Main.MainWindow: Windows version: Microsoft Windows NT 10.0.19043.0
2021-11-15 13:15:16,181 [1] INFO  TouchGFXDesigner.Main.MainWindow: Current culture: zh-CN
2021-11-15 13:15:16,185 [1] INFO  TouchGFXDesigner.Main.MainWindow: Current culture time seperator: :
2021-11-15 13:15:16,185 [1] INFO  TouchGFXDesigner.Main.MainWindow: Current culture date seperator: /
2021-11-15 13:15:16,192 [1] INFO  TouchGFXDesigner.Main.MainWindow: Installed .NET version(s): v2.0.50727 2.0.50727.4927 SP2v3.0 3.0.30729.4926 SP2v3.5 3.5.30729.4926 SP1v4 (Client 4.8.04084 Full 4.8.04084 )  v4.0 (Client 4.0.0.0 )  
2021-11-15 13:15:16,336 [11] INFO  Utils.WebHandling.WebHandler: Downloading STM32F429I_DK_BUTTON_SAMPLE_DEMO.png
2021-11-15 13:15:16,976 [11] ERROR Utils.WebHandling.WebHandler: Response status code does not indicate success: 404 (Not Found).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Utils.WebHandling.FileDownloadUtil.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)
   at Utils.WebHandling.WebHandler.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)
2021-11-15 13:15:16,991 [11] ERROR TouchGFXPackages.Implementation.FileDownloader: Failed to download: http://sw-center.st.com/touchgfx/pacman/4.18.0/STM32F429_DK_BUTTON_SAMPLE_DEMO/STM32F429I_DK_BUTTON_SAMPLE_DEMO.png
2021-11-15 13:15:30,526 [11] INFO  Utils.WebHandling.WebHandler: Downloading STM32F429I_DK_BUTTON_SAMPLE_DEMO.png
2021-11-15 13:15:31,017 [11] ERROR Utils.WebHandling.WebHandler: Response status code does not indicate success: 404 (Not Found).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Utils.WebHandling.FileDownloadUtil.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)
   at Utils.WebHandling.WebHandler.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)
2021-11-15 13:15:31,017 [11] ERROR TouchGFXPackages.Implementation.FileDownloader: Failed to download: http://sw-center.st.com/touchgfx/pacman/4.18.0/STM32F429_DK_BUTTON_SAMPLE_DEMO/STM32F429I_DK_BUTTON_SAMPLE_DEMO.png
2021-11-15 13:15:48,256 [19] INFO  Utils.WebHandling.WebHandler: Downloading STM32F469I-DISCO-3.0.5.tpa
2021-11-15 13:15:50,453 [19] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\luoji\AppData\Roaming\TouchGFX-4.18.0\Downloads\STM32F469I-DISCO\3.0.5\STM32F469I-DISCO-3.0.5.tpa
2021-11-15 13:15:50,466 [19] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\luoji\AppData\Roaming\TouchGFX-4.18.0\Downloads\DiceAnimation\1.1.0\DiceAnimation-1.1.0.tpa
2021-11-15 13:15:50,502 [19] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\luoji\AppData\Roaming\TouchGFX-4.18.0\Downloads\STM32F469I-DISCO\3.0.5\STM32F469I-DISCO-3.0.5.tpa
2021-11-15 13:15:50,859 [19] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\luoji\AppData\Roaming\TouchGFX-4.18.0\Downloads\DiceAnimation\1.1.0\DiceAnimation-1.1.0.tpa
2021-11-15 13:15:51,281 [19] DEBUG TouchGFXDomainModel.Texts.TextManager: Loaded 477 fonts
2021-11-15 13:15:51,442 [19] ERROR TouchGFXDomainModel.LoadSave.LoadSave: 'MySQL' �?是内部或外部命令,也�?是�?��?行的程�?
或批处�?�文件。
'MySQL' �?是内部或外部命令,也�?是�?��?行的程�?
或批处�?�文件。
 
System.Exception: 'MySQL' �?是内部或外部命令,也�?是�?��?行的程�?
或批处�?�文件。
'MySQL' �?是内部或外部命令,也�?是�?��?行的程�?
或批处�?�文件。
 
   at TouchGFXDomainModel.LoadSave.Update.Update4170To4180.ConvertExcelToXml(String pathToTextConverter, String pathToExcelFile, String pathToXmlFile)
   at TouchGFXDomainModel.LoadSave.Update.Update4170To4180.Run()
   at TouchGFXDomainModel.LoadSave.Update.UpdateSerial.Update4170To4180(String serial4170, String projectPath)
   at TouchGFXDomainModel.LoadSave.Update.UpdateSerial.Update(String jsonString, String projectPath)
   at TouchGFXDomainModel.LoadSave.Update.UpdateSerial.Run(String path)
   at TouchGFXDomainModel.LoadSave.LoadSave.LoadDotTouchgfx(String filename)
   at TouchGFXDomainModel.LoadSave.LoadSave.Load(String filename)
2021-11-15 13:15:51,448 [1] ERROR TouchGFXDesigner.App: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at TouchGFXPackages.ImportExport.ImportGui.Import()
   at TouchGFXPackages.Implementation.PackageManager.CombineAtAndUi(TouchGFXPackage tgui, TouchGFXPackage tgat, String projectPath, String applicationName, Int32 height, Int32 width, ColorDepth selectedColorDepth, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.<>c__DisplayClass5_0.<CombinePackagesAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.CombinePackagesAsync(ApplicationCombineConfig applicationConfig, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.Create(ApplicationCombineConfig applicationConfig, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreator.ApplicationCreatorViewModel.CreateApplication(Object obj)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2021-11-15 13:18:51,728 [1] ERROR TouchGFXDesigner.App: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at TouchGFXPackages.ImportExport.ImportGui.Import()
   at TouchGFXPackages.Implementation.PackageManager.CombineAtAndUi(TouchGFXPackage tgui, TouchGFXPackage tgat, String projectPath, String applicationName, Int32 height, Int32 width, ColorDepth selectedColorDepth, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.<>c__DisplayClass5_0.<CombinePackagesAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.CombinePackagesAsync(ApplicationCombineConfig applicationConfig, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.Create(ApplicationCombineConfig applicationConfig, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreator.ApplicationCreatorViewModel.CreateApplication(Object obj)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

JLuo.3
Associate II

I solved this problem myself.

The reason is that mysql is installed on my computer, and everything is normal after uninstalling.

😂