cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an TouchGFX Board Setup Fails

luiscrsousa
Associate II

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)

 

 

2 REPLIES 2
GaetanGodart
ST Employee

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,

Gaetan Godart
Software engineer at ST (TouchGFX)
GaetanGodart
ST Employee

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,

Gaetan Godart
Software engineer at ST (TouchGFX)