cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Board Setup (TBS)

RobNewbury
Associate III

Perhaps someone can help me with regard to creating a TBS please.

I created a TBS following the instructions here https://support.touchgfx.com/docs/development/scenarios/scenarios-create-at

I'm using TouchGFX V 4.26.0 so I altered the instructions given for V.4.25.0 accordingly.

Apart from some confusion over the naming of the JSON file which always reverts to 'MyApplication' following the pack command, the TBS that I created worked.

I then went on to create a second TBS for a different set up. However this one didn't work, and the first TBS that I had created stopped working. (I must add at this stage that I don't recall changing anything that related to the first TBS when I created the second but I honestly can't be sure).

The error I get is 'Download of 'MyAppicationName' failed, this is shown highlighted in the screenshot below at the bottom right. My two TBS's are highlighted with red star. The first TBS I created is named '4-inch-Circular', and the second 3.45 inch starter project.

I think when I created and tested the first TBS, the download icon (down arrow in the bottom right of the TBS icon in the snip) showed as 'available offline', but I can't be sure of this.

.... So that raises the question, where is the TBS expected to be downloaded from as surely its' stored locally in the .tpa file that I created and placed in location C:\TouchGFX\4.26.0\app\packages ?
There may be a clue to this in the JSON file which starts out with the following:
{
"Meta": {
"Url": "http://packages.touchgfx.com/V2/Circular/Circular-1.0.0.zip",
.....

Where is that URL and why is it being referenced at all? there is no information about this in the documentation.

I've attached the .ZIP of the .tpa file for the TBS that previoulsy worked. (This site doesn't support uploading .tpa files, however the .tpa content appears to be the same as the .zip)

 

RobNewbury_0-1762965334991.png

 

4 REPLIES 4
RobNewbury
Associate III

An update on this issue. I re-created my first project TBS which now works.

The second project also works but it generates a JSON file that is literally named 'MyApplication'. It also correctly generates a .zip file that has the correct project name, this file is very large (41,216 KB, I did clean the project as described in the documentation)

The 'MyApplication.json' file contains metadata for a URL which contains the name 'MyApplication'
Looking at other TBS json files, this should be the project name.

RobNewbury_2-1763071836106.png

Some description in the TouchGFX documentation of what this metadata refers to would be helpful. 

This is the pack command that I used

RobNewbury_1-1763071457582.png

..and these are the generated files.

RobNewbury_0-1763071416572.png

I consider my problem resolved, however it would be helpful if someone from ST can comment on why the JSON file can sometimes be named literally 'MyApplication' rather than the project name.

Please also provide some description in the TouchGFX documentation of what the metadata URL in the JSON file is, it's construction and how it is used in relation to our data.

A concern I have relating to the metadata is whether the generated TBS is being stored on a remote server?

 

I went on to change the name of the .tpa file (as the documentation says you can). After doing so the TBS failed to work, previously the TBS showed as being available offline but now shows that it is available for download and gives a Download error when the Create button is pressed.

I now believe this explains my original issue.   

RobNewbury_0-1763114107742.pngRobNewbury_1-1763114213042.png

In summary, I wish to report the following issues with the TBS generation and documentation.

  1. When tgfx.exe pack -d is executed then sometimes the resulting json file is literally named 'MyApplication' and the final .tpa file is also named 'MyApplication'. This may or may not be associated with the size of the donor project.
  2. If the .tpa is renamed then the TouchGFX 'create' seems to look elsewhere for the tpa and tries to download it, resulting in a download error. 
  3. Please add to the documentation an explenation of the function of the metadata URL in the JSON file as this appears to be refencing the TBS from a remote location. A security concern would be if the .tpa (i.e. the content of the donor project) is being stored on a remote server.
    RobNewbury_2-1763115043273.png

     

 

Hello @RobNewbury ,

Thank you for your post, I will try to investigate that. The point 1 seems to be a bug to me, tgfx.exe pack -d  should create your tpa with the provided name. For point 2, I would recommend not to rename manually, but I agree with you that it shouldn't behave in a strange way if renamed. For point 3, we will consider to document it better if its needed.

Best regards,

Osman SOYKURT
ST Software Developer | TouchGFX
Okeskin
Associate III

Hello @Osman SOYKURT 

I have the same problem. When I create a new project file, the name of the json file changes to My Application. Do you have any update for this?

BR,