2024-06-27 03:24 AM - edited 2024-06-27 03:24 AM
I'm trying to create a specific template for a custom board and following this stm link: https://support.touchgfx.com/docs/development/scenarios/scenarios-create-at
I get the following error right on the first command.
C:\Users\user\Desktop>C:/TouchGFX/4.24.0/designer/tgfx.exe pack -rc -d MyApplication
Executing pack (Packs up the TouchGFX application):
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user\Desktop\MyApplication'.
at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
at System.IO.Enumeration.FileSystemEnumerator`1.Init()
at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
at System.IO.DirectoryInfo.GetFiles(String searchPattern, EnumerationOptions enumerationOptions)
at TouchGFXPackages.Implementation.CreateTouchGFXPackage..ctor(String projectPath, String applicationTemplateVersion)
at TouchGFXDesignerCLI.Commands.Pack.PackExecutor..ctor(Boolean release, Boolean convert, String projectPath, String imagesPath, Boolean validate, Boolean upload, String deletePackageWithName, String server, String applicationTemplateVersion)
at TouchGFXDesignerCLI.Commands.Pack.PackCommand.Run(String[] remainingArguments)
at ManyConsole.ConsoleCommandDispatcher.DispatchCommand(IEnumerable`1 commands, String[] arguments, TextWriter consoleOut, Boolean skipExeInExpectedUsage)
at TouchGFXDesignerCLI.Program.Main(String[] args)
2024-06-27 04:35 AM
Hello @luiscrsousa ,
Are you able to design a GUI in Designer, generate code, run on the simulator and flash on target?
The link you have share is for when you have a working project and want to put it into a .tpa file to share it easily with other people.
The command you have run seems to be the second command.
The first one is "pack -d MyApplication"
Not "pack -rc -d MyApplication"
The error message is "Could not find a part of the path 'C:\Users\user\Desktop\MyApplication'."
It seems you have your project on the desktop, can you confirm that?
Regards,
2024-09-02 02:27 AM
Hello @luiscrsousa ,
Have you been able to solve your problem?
If so, I invite you to select the most helpful comment as "best answer".
Regards,