Skip to main content
TMitc
Associate II
June 3, 2019
Solved

Converting windows simulator to run on target (stm32f769i-disco)

  • June 3, 2019
  • 3 replies
  • 1089 views

I have developed a UI in the PC simulator that I would now like to be able to deploy to a board, but it does not seem like there is any way to target the board/generate the target.hex files that can be used in st-link. The UI is quite large and I would like to be able to do this without having to rebuild the entire application from scratch. Thanks in advance.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi Tyler,

I would like there to be a specific option to "migrate" from a simulator project to a target project. Instead, you've got a few ways to go about this:

  1. Create a new project for the right target and "import" the gui from your simulator project. This won't copy all your custom code, though.
  2. Create a new project for the right target and copy the target specific folders to your simulator project - A simulator project is actually just a folder without all the bells and whistles / Compilers for your specific target. You could then adapt your .touchgfx project file to have the right post-generate command (from the target specific project) which will update your projects when new files are generated by the designer.

Hope this helps. Let me know.

/Martin

3 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
June 4, 2019

Hi Tyler,

I would like there to be a specific option to "migrate" from a simulator project to a target project. Instead, you've got a few ways to go about this:

  1. Create a new project for the right target and "import" the gui from your simulator project. This won't copy all your custom code, though.
  2. Create a new project for the right target and copy the target specific folders to your simulator project - A simulator project is actually just a folder without all the bells and whistles / Compilers for your specific target. You could then adapt your .touchgfx project file to have the right post-generate command (from the target specific project) which will update your projects when new files are generated by the designer.

Hope this helps. Let me know.

/Martin

TMitc
TMitcAuthor
Associate II
June 4, 2019

Yes! I only had to move the Target & Platform folders into the existing project, fix a few small bugs, and it worked perfectly! Thanks for the help

Martin KJELDSEN
Principal III
June 4, 2019

No problem! Glad to be of help.

/Martin