cancel
Showing results for 
Search instead for 
Did you mean: 

Failure to update from touchgfx 4.18 to 4.21.3 due to corrupt JSON

RMoli.3
Associate III

I am currently using:

  • STM32CubeIde 1.8.0
  • STM32F7 1.16.2
  • Touchgfx 4.18

I am trying to upgrade Touchgfx 4.18 to 4.21.3. I know I have to update and regenerate the code from STM32CubeIde and from Touchgfx Designer. Howerver once I regenerate the code form STM32CubeIde I can no longer open the .application.touchgfx file. As this error appears:

0693W00000aJrT8QAK.png 

The steps I have followed are:

  • Open the .touchgfx with the designer and upgrade to 4.23.
  • Modify code that has incompatibilities. (I am able to run the simulator)
  • Open .ioc file and I can see that X-CUBE-touchgfx is already pointing to version 4.21.3
  • Regenerate code
  • I can no longer open the .touchgfx file with 4.23.3

Second attemp:

  • Open .ioc and change X-CUBE-touchgfx version to 4.23.3
  • Click the try and accept button
  • Regenerate code
  • I open the .touchgfx with the designer.
  • The update popup appears and I accept
  • The update process failt with the same message and I can no longer open the file
1 ACCEPTED SOLUTION

Accepted Solutions
RMoli.3
Associate III

After updating from STM32CubeIde 1.8.0 to STM32CubeIde 1.11.0 the exact same procedure worked correctly.

View solution in original post

3 REPLIES 3
MM..1
Chief II

I use other steps.

  1. IDE project open ioc
  2. Software package add latest TouchGFX if isnt allready here
  3. On selecting packages click on TouchGFX and open migrate panel (little hiden feature)
  4. Press migrate 18 to 21...
  5. Check and set TouchGFX 21 part all this in MX wizard
  6. Close wizard and generate code
  7. Open TGFx project or template generate
  8. Build
RMoli.3
Associate III

Your steps are the ones on my second attemps

Step 1,2,3,4

0693W00000aPMuPQAW.pngStep 5 I can see that the SW package is selected correctly in th .ioc

0693W00000aPMvDQAW.pngStep 6 I click ok, save the .ioc and the code is generated.  I can see that files in TouchGFX/target/generated have been created by touchgfx version 4.21.3 : "This file is generated by TouchGFX Generator 4.21.3. Please, do not edit! "

Step 7: I try to open the .touchgfx file with the designer:

0693W00000aPMvXQAW.pngAfter clicking yes it fails with the "Application.Toolchain" error

RMoli.3
Associate III

After updating from STM32CubeIde 1.8.0 to STM32CubeIde 1.11.0 the exact same procedure worked correctly.