cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with creating Board Setup file (.tpa)

I have a custom board. Right now we have a "template project" which is mostly a stripped project and we have a customer project. We periodically merge some changes between them. Instead of copying the template project and modifying it I would like to be able to use it as a board in TouchGFX designer directly. This will be important when we will use the board for more than 1 customer.

I followed the instructions, but the board doesn't show up.

I followed these instructions: https://support.touchgfx.com/docs/development/scenarios/scenarios-create-at

I stripped the project.

My project structure is:

C:\source\company\company-stm32-touchgfx-hmi-bsp
C:\source\company\company-stm32-touchgfx-hmi-bsp\.git
C:\source\company\company-stm32-touchgfx-hmi-bsp\Doc
C:\source\company\company-stm32-touchgfx-hmi-bsp\Source\Middlewares
C:\source\company\company-stm32-touchgfx-hmi-bsp\Source\TouchGFX
C:\source\company\company-stm32-touchgfx-hmi-bsp\Source\TouchGFX\company-STM32-TouchGFX-HMI-BSP.touchgfx

I closed TouchGFX Designer

In TouchGFX environment terminal:

cd "C:\source\company\company-stm32-touchgfx-hmi-bsp"
/c/TouchGFX/4.25.0/designer/tgfx.exe pack -d Source
company-STM32-TouchGFX-HMI-BSP.zip is created
MyApplication.json is created

add some details to MyApplication.json
leave PathToDotTouchGFX empty as TouchGFX is in the root of the projectfolder

/c/TouchGFX/4.25.0/designer/tgfx.exe pack -rc -d Source

rename MyApplication-1.0.0.tpa to company-STM32-TouchGFX-HMI-BSP-1.0.0.tpa
moved company-STM32-TouchGFX-HMI-BSP-1.0.0.tpa to C:\TouchGFX\4.25.0\app\packages

 Opening TouchGFX Designer doesn't show the board under partners.

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
13 REPLIES 13

@Osman SOYKURT wrote:

I'm unsure about if this is feasible to use a link to a mapped server. To my knowledge, only pictures hosted on internet works.


Ok. That's unfortunate.

 


@Osman SOYKURT wrote:

Have you tried to check the application name as I suggested in my last message btw?


I modified the application name in the .touchgfx file. This changed the filename of the package to the proper name. Adding --version fixed the version number in the filename.
However the custom board is still not visible in TouchGFX.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
Osman SOYKURT
ST Employee

Hello,
If in your JSON you have set the Type to "TGAT", then the custom TBS should appear in the 'Create' window in TouchGFX Designer.
I can test that for you on my side if you send me your .tpa file.

Osman SOYKURT
ST Software Developer | TouchGFX

I'm making progress. I found I accidentally inserted a space after TGAT (I'm sure I did not make this mistake before, but it wasn't working then for other reasons I guess). The board is now visible, but it only allows creating it for simulator. I'm doing more experiments. If I don't figure it out I'll send you the file.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Hello @unsigned_char_array ,

Super, you're almost there :)
Do you mean only run on simulator works? If so, make sure you have the right build configuration in the Config panel as well as the GCC folder with the makefile and related files.

Osman SOYKURT
ST Software Developer | TouchGFX