cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX and touchGFX not synchronized

Coccodrillo19
Associate II

Hello,

I'm using the board NUCLEO-H563ZI paired with RVA35HI screen.

When I just created the project and generated the code i could download the touchgfx project with the touchgfx application ("program and run target" option), but after trying to download it with IAR IDE (and having problems with it) the system is not working anymore; the screen stays white and when i try to generate with cubemx, the popup message on touchgfx asking if i want to reload after the changes is not showing up anymore.

It seems that touchgx and cubemx aren't synchronized anymore.

When i said i have problems with IAR i mean these messages when i try to debug:
1- "There were warnings while generating flash loader input. See the Debug Log window for details"

2- "There were 2 errors and 1 warning during the initialization of the debugging session. There is more infrmation in the Debug Log window. Do you want to continue the "Run to" command?"

The dubugger stops in the HardFault_Handler.

 

Do you have any experience with this issue?

4 REPLIES 4
JohanAstrup
ST Employee

Hello @Coccodrillo19.

If we address the IAR flash issue first, your issue is that you are trying to flash an application that uses both internal and external (available on the RVA35HI) flash memory. However, IAR does not provide an external flash loader for Nucleo-H563ZI+RVA35HI. We have created an external loader that is bundled with the TBS in the gcc folder. This external loader is only compatible with STM32CubeProgrammer and is used in the TBS when you press "Run Target" in TouchGFX Designer or when you flash or debug the application in STM32CubeIDE.

To flash the IAR-compiled application, follow the procedure below:

  1. Ensure STM32CubeProgrammer is closed.
  2. Copy the external loader from the TBS into your STM32CubeProgrammer's external loader directory. Typically C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader, if you have STM32CubeProgrammer installed in the default directory.
  3. Open STM32CubeProgrammer.
  4. Go to "External loaders" at the bottom left corner.
  5. Press "Deselect all".
  6. Find and select the external loader that you have just copied into the STM32CubeProgrammer directory.
    Called "W25Q64_NUCLEO-H563Zl-RVA35Hl-REV-1-1".
  7. Ensure that the board is connected to your computer and press "Connect" in STM32CubeProgrammer.
  8. Go to the "Erasing & Programming" tab.
  9. Select the IAR .hex file and press "Start Programming".

By following this procedure, you should be able to flash the application without issues. You can still debug the application in IAR.

Regarding the other issue, I have not heard about synchronization issues before. What happens if you simply try to reload the project in TouchGFX Designer?

Best regards,
Johan

Good morning Johan, thanks for your answer!

I've already tried what you wrote and it's giving the same error about failing to erase external memory.

The first time programming it doesn't show any error but the display remains white.

The second time trying to download it gives the error I wrote above.

I'll probably proceed asking the producer for assistance.

Thanks.

JohanAstrup
ST Employee

Which version of the RVA35HI do you have?

Can you erase and write specific bytes in the external flash memory with STM32CubeProgrammer in the "Memory & File editing" tab?

I have previously heard about cases where it is suddenly not possible to erase external flash on RVA35HI. I am quite sure Riverdi will replace the board, if this is the case. Therefore, I think you are correct that the best next step is to contact Riverdi.

Best regards,
Johan

I have the RVA35HI REV 1.1

Yes I can erase and write specific bytes in the external flash memory.

Thanks for your help again.