cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX for STM32N6570 - "Cannot Run Target" and "Program and Run Target" Disabled

Jack3
Senior III

Hello everyone!

I tried to explore TouchGFX for the first time to discover the advantages of it.
So in TouchGFX 26.0, I started a project for the STM32N6570-DK.

What I did: "Create new", then selected "STM32N6570 Discovery Kit".
Before doing anything, this problem appears: 

"Cannot Run Target" and the "Program and Run Target" button appears disabled.

I noticed the "STM32U5G9J DK2 has the "Program and Run Target" button enabled.

Is the STM32N6570-DK not supported in TouchGFX?
Or what did I do wrong?

Thank you in advance for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
JohanAstrup
ST Employee

Hello @Jack3.

The N6 is supported starting from TouchGFX version 4.24.2.
However, currently only STM32CubeIDE and EWARM are supported for compiling applications. This means that you cannot compile and flash applications for the N6 directly within TouchGFX Designer. This limitation is also mentioned in the board setup description, as shown below.

JohanAstrup_0-1759230084192.png

To get started, I recommend reviewing the readme file located in the root folder when creating an N6 project. This file provides detailed information on the limitations and guides for building and flashing applications. Due to the N6's powerful and complex nature, there are several important considerations to be aware of.

Best regards,
Johan

View solution in original post

4 REPLIES 4
JohanAstrup
ST Employee

Hello @Jack3.

The N6 is supported starting from TouchGFX version 4.24.2.
However, currently only STM32CubeIDE and EWARM are supported for compiling applications. This means that you cannot compile and flash applications for the N6 directly within TouchGFX Designer. This limitation is also mentioned in the board setup description, as shown below.

JohanAstrup_0-1759230084192.png

To get started, I recommend reviewing the readme file located in the root folder when creating an N6 project. This file provides detailed information on the limitations and guides for building and flashing applications. Due to the N6's powerful and complex nature, there are several important considerations to be aware of.

Best regards,
Johan

Jack3
Senior III

Hi Johan, thank you very much!

I missed that note, because in TGFX 4.26.0 doesn't show the description.
I read "readme.md" in the root folder.
The "Flash Scripts" don't work: "Error: binary file does not exist". 
Did I perhaps give my project a 'wrong' name that doesn't match the scripts' expectations?

Meanwhile I discovered the STM32N6570 has a somewhat more complex nauture (in compare with the STM32H7S78), making any attempt to use it fail so far.
I created a project with STM32CubeMX 6.15.0, compile it with STM32CubeIDE 1.19.0., but can't flash it directly from the IDE. No errors, but the existing demo just remains working after a reset.

Obviously the code needs to be flashed in external flash, and since I'm missing the "ExtMemLoader", and "flash scripts", I need to use the MX66UW1G45G_STM32N6570-DK in the External Loader in STM32CubeProg, right?

Reading is for wimps and I'm a wimp, so I'm going to read the documentation more thoroughly.
I enjoy learning new things.

Best regards, Jack

JohanAstrup
ST Employee

Could you share a screenshot of how it appears in your TouchGFX Designer? I see the description on the right when I select a TBS.

Are you using STM32CubeIDE or EWARM?
To confirm, have you followed this procedure:

  1. Generate code in TouchGFX Designer (F4).
  2. Compile FSBL with the selected compiler.
  3. Compile the application with the selected compiler.
  4. Set the BOOT1 switch.
  5. Navigate to the matching flash scripts for the selected compiler (ensure you also select the correct context if you are using STM32CubeIDE).
  6. Run LoadAll.bat.

If you have followed the procedure above and the script cannot locate the binaries, could you please share your project?

Best regards,
Johan

Hi Johan, I see it now too.
The problem was that TouchGFX Designer opened with the window maximized to the screen (not preferred).
My screen is 5120 pixels wide, so the description was about a meter to the right; I didn't notice.
For the screenshot below, I resized the window to get them close together.
Sorry to bother you.

I succeeded to flash my code.

Some useful links to start:

STM32N6 boot ROM explained
https://community.st.com/t5/stm32-mcus/stm32n6-boot-rom-explained/ta-p/763648

How to create an STM32N6 FSBL load and run
https://community.st.com/t5/stm32-mcus/how-to-create-an-stm32n6-fsbl-load-and-run/ta-p/768206

STM32N6 demo workshop
https://www.youtube.com/watch?v=3jnal51NBZQ&list=PLTJzs51NlEICI7ARAHOyUqMhTgJE0UFv0&index=1

Thanks a lot! Jack.

TouchGFXDesigner-4.26.0_Description_20251001_121525.png